https://github.com/python/cpython/commit/e45d53520828179ac0a51cfcf56fb16013c4d25d commit: e45d53520828179ac0a51cfcf56fb16013c4d25d branch: main author: yihong <[email protected]> committer: terryjreedy <[email protected]> date: 2025-09-24T14:52:11-04:00 summary:
gh-139292: avoid extra tailing blank line in `python -m inspect -d <target>` (#139293) Signed-off-by: yihong0618 <[email protected]> files: M Lib/inspect.py diff --git a/Lib/inspect.py b/Lib/inspect.py index 5a46987b78b437..b345623b3fa2db 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -3397,7 +3397,7 @@ def _main(): else: print('Line: {}'.format(lineno)) - print('\n') + print() else: print(getsource(obj)) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
