summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-11-12 23:09:12 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-11-12 23:09:12 (GMT)
commit82c72310718024f0a50f684b497ef9e9b62971e5 (patch)
tree9fd0927ce1bbc5a5f831b217d7df4335b450528b /Tools
parent80a1bf4b5db4880f01d30b89ab5f6c436d50c8e6 (diff)
downloadcpython-82c72310718024f0a50f684b497ef9e9b62971e5.zip
cpython-82c72310718024f0a50f684b497ef9e9b62971e5.tar.gz
cpython-82c72310718024f0a50f684b497ef9e9b62971e5.tar.bz2
SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code(). Will backport.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/freeze/modulefinder.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/freeze/modulefinder.py b/Tools/freeze/modulefinder.py
index e9c1140..aef887f 100644
--- a/Tools/freeze/modulefinder.py
+++ b/Tools/freeze/modulefinder.py
@@ -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():