summaryrefslogtreecommitdiff
path: root/lang/python/python3/patches/004-do-not-write-bytes-codes.patch
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2018-07-12 15:12:03 +0300
committerGitHub <noreply@github.com>2018-07-12 15:12:03 +0300
commit666602f7f73364304749db780a559eb39c659176 (patch)
tree4d5395b792be550eb9556d9a69aad506f46fa5c5 /lang/python/python3/patches/004-do-not-write-bytes-codes.patch
parent3ec9fc2f5da3bb29cd173f93ad1525c35cda8a47 (diff)
parent2080550f766ea415b737829479de9554e8ef7f9f (diff)
Merge pull request #6411 from crza/update-python
python3: update to python 3.7.0
Diffstat (limited to 'lang/python/python3/patches/004-do-not-write-bytes-codes.patch')
-rw-r--r--lang/python/python3/patches/004-do-not-write-bytes-codes.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch
index 463263222..eb66443aa 100644
--- a/lang/python/python3/patches/004-do-not-write-bytes-codes.patch
+++ b/lang/python/python3/patches/004-do-not-write-bytes-codes.patch
@@ -1,10 +1,10 @@
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
-@@ -88,7 +88,7 @@ int Py_BytesWarningFlag; /* Warn on str(
- int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */
- int Py_FrozenFlag; /* Needed by getpath.c */
- int Py_IgnoreEnvironmentFlag; /* e.g. PYTHONPATH, PYTHONHOME */
--int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.pyc) */
+@@ -120,7 +120,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
+ int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */
+ int Py_FrozenFlag = 0; /* Needed by getpath.c */
+ int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */
+-int Py_DontWriteBytecodeFlag = 0; /* Suppress writing bytecode files (*.pyc) */
+int Py_DontWriteBytecodeFlag = 1; /* Suppress writing bytecode files (*.pyc) */
int Py_NoUserSiteDirectory = 0; /* for -s and site.py */
int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */