Show More
@@ -138,7 +138,7 b' def removed_co_newlocals(function:types.FunctionType) -> types.FunctionType:' | |||
|
138 | 138 | from types import CodeType, FunctionType |
|
139 | 139 | CO_NEWLOCALS = 0x0002 |
|
140 | 140 | code = function.__code__ |
|
141 | if sys.version_info > (3,8): | |
|
141 | if sys.version_info > (3, 8, 0, 'alpha', 3): | |
|
142 | 142 | new_code = CodeType( |
|
143 | 143 | code.co_argcount, |
|
144 | 144 | code.co_posonlyargcount, # Python-3.8 PEP570 positional only argument |
General Comments 0
You need to be logged in to leave comments.
Login now