Skip to content

Commit 88f7beb

Browse files
Drop the temporary code.
1 parent c199564 commit 88f7beb

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Lib/test/test_code.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,9 +966,6 @@ def func_with_globals_and_builtins():
966966
return callable(mod2), tuple(mods), list(mods), checks
967967

968968
func = func_with_globals_and_builtins
969-
dis.dis(func)
970-
for i, instr in enumerate(dis.get_instructions(func)):
971-
print(i, instr, end='')
972969
with self.subTest(f'{func} code'):
973970
expected = new_var_counts(
974971
purelocals=4,

Objects/codeobject.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,13 +1730,8 @@ identify_unbound_names(PyThreadState *tstate, PyCodeObject *co,
17301730
assert(counts == NULL || counts->total == 0);
17311731
struct co_unbound_counts unbound = {0};
17321732
Py_ssize_t len = Py_SIZE(co);
1733-
fprintf(stderr, "\n");
1734-
fprintf(stderr, "%s\n", PyUnicode_AsUTF8(co->co_name));
17351733
for (int i = 0; i < len; i++) {
1736-
fprintf(stderr, "%d\n", i);
1737-
fflush(stderr);
17381734
_Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i);
1739-
continue;
17401735
if (inst.op.code == LOAD_ATTR) {
17411736
int oparg = GET_OPARG(co, i, inst.op.arg);
17421737
int index = LOAD_ATTR_NAME_INDEX(oparg);

0 commit comments

Comments
 (0)