Skip to content

Commit 5e8ec42

Browse files
committed
Make work without default encoding
1 parent 751bacf commit 5e8ec42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ def dump(co):
166166
"""Print out a text representation of a code object."""
167167
for attr in ["name", "argcount", "posonlyargcount",
168168
"kwonlyargcount", "names", "varnames",
169-
"cellvars", "freevars", "nlocals", "flags",
170-
"lnotab"]:
169+
"cellvars", "freevars", "nlocals", "flags"]:
171170
print("%s: %s" % (attr, getattr(co, "co_" + attr)))
171+
print("lnotab:", repr(co.co_lnotab))
172172
print("consts:", tuple(consts(co.co_consts)))
173173

174174
# Needed for test_closure_injection below

0 commit comments

Comments
 (0)