diff options
author | Petr Viktorin <encukou@gmail.com> | 2022-02-25 08:25:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 08:25:54 (GMT) |
commit | 2c228a7b8f89e9ed8d390370abd771d4993b79d8 (patch) | |
tree | 6c3316eb466ed4feb1221d4ece109695f01e77aa /Tools/freeze | |
parent | 98c3bea4d1c7335135e60946d0ec8cd5031fb6c0 (diff) | |
download | cpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.zip cpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.tar.gz cpython-2c228a7b8f89e9ed8d390370abd771d4993b79d8.tar.bz2 |
bpo-46748: Don't import <stdbool.h> in public headers (GH-31553)
<stdbool.h> is the standard/modern way to define embedd/extends Python free to define bool, true and false, but there are existing applications that use slightly different redefinitions, which fail if the header is included.
It's OK to use stdbool outside the public headers, though.
https://bugs.python.org/issue46748
Diffstat (limited to 'Tools/freeze')
-rw-r--r-- | Tools/freeze/makefreeze.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/freeze/makefreeze.py b/Tools/freeze/makefreeze.py index bc5f856..c464f4b 100644 --- a/Tools/freeze/makefreeze.py +++ b/Tools/freeze/makefreeze.py @@ -45,9 +45,9 @@ def makefreeze(base, dict, debug=0, entry_point=None, fail_import=()): print("freezing", mod, "...") str = marshal.dumps(m.__code__) size = len(str) - is_package = 'false' + is_package = '0' if m.__path__: - is_package = 'true' + is_package = '1' done.append((mod, mangled, size, is_package)) writecode(outfp, mangled, str) if debug: |