Skip to content

Commit 2d232cd

Browse files
committed
Simplify
1 parent 9db621e commit 2d232cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/pickletools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ def dis(pickle, out=None, memo=None, indentlevel=4, annotate=0):
24702470
indentchunk = ' ' * indentlevel
24712471
errormsg = None
24722472
annocol = annotate # column hint for annotations
2473-
t = get_theme(tty_file=out if out is not None else sys.stdout).pickletools
2473+
t = get_theme(tty_file=out).pickletools
24742474
for opcode, arg, pos in genops(pickle):
24752475
if pos is not None:
24762476
print(f"{t.position}{pos:5d}:{t.reset}", end=' ', file=out)

0 commit comments

Comments
 (0)