Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit