Skip to content

Commit e45d535

Browse files
authored
gh-139292: avoid extra tailing blank line in python -m inspect -d <target> (#139293)
Signed-off-by: yihong0618 <[email protected]>
1 parent 8d83b7d commit e45d535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3397,7 +3397,7 @@ def _main():
33973397
else:
33983398
print('Line: {}'.format(lineno))
33993399

3400-
print('\n')
3400+
print()
34013401
else:
34023402
print(getsource(obj))
34033403

0 commit comments

Comments
 (0)