Author: Ronan Lamy <[email protected]>
Branch: py3.7
Changeset: r97338:bcb6578cf796
Date: 2019-08-30 00:19 +0100
http://bitbucket.org/pypy/pypy/changeset/bcb6578cf796/
Log: Add new sys.flags attributes
diff --git a/pypy/module/sys/app.py b/pypy/module/sys/app.py
--- a/pypy/module/sys/app.py
+++ b/pypy/module/sys/app.py
@@ -56,7 +56,7 @@
If it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure)."""
# note that we cannot simply use SystemExit(exitcode) here.
- # in the default branch, we use "raise SystemExit, exitcode",
+ # in the default branch, we use "raise SystemExit, exitcode",
# which leads to an extra de-tupelizing
# in normalize_exception, which is exactly like CPython's.
if isinstance(exitcode, tuple):
@@ -106,8 +106,10 @@
quiet = structseqfield(10)
hash_randomization = structseqfield(11)
isolated = structseqfield(12)
+ dev_mode = structseqfield(13)
+ utf8_mode = structseqfield(14)
-null_sysflags = sysflags((0,)*13)
+null_sysflags = sysflags((0,)*15)
null__xoptions = {}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit