[pypy-commit] pypy py3.5: Trying it out in this order: PYTHONWARNINGS should have lower priority than explicit -W options
arigo
pypy.commits at gmail.com
Sun Jan 8 09:57:10 EST 2017
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89413:62f33b906529
Date: 2017-01-08 15:56 +0100
http://bitbucket.org/pypy/pypy/changeset/62f33b906529/
Log: Trying it out in this order: PYTHONWARNINGS should have lower
priority than explicit -W options
diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py
--- a/pypy/interpreter/app_main.py
+++ b/pypy/interpreter/app_main.py
@@ -586,7 +586,7 @@
pythonwarnings = readenv and os.getenv('PYTHONWARNINGS')
if pythonwarnings:
- warnoptions.extend(pythonwarnings.split(','))
+ warnoptions = pythonwarnings.split(',') + warnoptions
if warnoptions:
sys.warnoptions[:] = warnoptions
from warnings import _processoptions
More information about the pypy-commit
mailing list