mirror of
https://github.com/python/cpython
synced 2026-09-29 10:35:30 +03:00
SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code(). Will backport.
This commit is contained in:
parent
80a1bf4b5d
commit
82c7231071
1 changed files with 2 additions and 1 deletions
|
|
@ -433,7 +433,8 @@ class ModuleFinder:
|
|||
return new.code(co.co_argcount, co.co_nlocals, co.co_stacksize,
|
||||
co.co_flags, co.co_code, tuple(consts), co.co_names,
|
||||
co.co_varnames, new_filename, co.co_name,
|
||||
co.co_firstlineno, co.co_lnotab)
|
||||
co.co_firstlineno, co.co_lnotab,
|
||||
co.co_freevars, co.co_cellvars)
|
||||
|
||||
|
||||
def test():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue