aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2021-03-02 21:37:47 +0100
committerCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2021-03-02 21:37:47 +0100
commit98cd0e4559abca0803dd3c57d2aa116f36efdd0d (patch)
treee9772591bdc69c7c0a33965593d8f1452f308425
parentwoops (diff)
downloadpypy-master.tar.gz
pypy-master.tar.bz2
pypy-master.zip
fix translation (can't iterate over tuples in rpython)HEADmaster
-rw-r--r--pypy/module/cpyext/api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
index 8e1a476509..73df8a6ddd 100644
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -638,7 +638,7 @@ BOOTSTRAP_FUNCTIONS = []
# Keep synchronized with pypy.interpreter.app_main.sys_flags and
# module.sys.app.sysflags. Synchronized in an init_function
-_flags = (
+_flags = [
# c name, sys.flags name
('Py_DebugFlag', 'debug'),
('Py_Py3kWarningFlag', 'py3k_warning'),
@@ -656,7 +656,7 @@ _flags = (
('Py_UnicodeFlag', 'unicode'),
('Py_BytesWarningFlag', 'bytes_warning'),
('Py_HashRandomizationFlag', 'hash_randomization'),
-)
+]
SYMBOLS_C += [c_name for c_name, _ in _flags]