##// END OF EJS Templates
be more precise : >3.8.0a3
stonebig -
Show More
@@ -138,7 +138,7 b' def removed_co_newlocals(function:types.FunctionType) -> types.FunctionType:'
138 from types import CodeType, FunctionType
138 from types import CodeType, FunctionType
139 CO_NEWLOCALS = 0x0002
139 CO_NEWLOCALS = 0x0002
140 code = function.__code__
140 code = function.__code__
141 if sys.version_info > (3,8):
141 if sys.version_info > (3, 8, 0, 'alpha', 3):
142 new_code = CodeType(
142 new_code = CodeType(
143 code.co_argcount,
143 code.co_argcount,
144 code.co_posonlyargcount, # Python-3.8 PEP570 positional only argument
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