gh-139292: avoid extra tailing blank line in python -m inspect -d <target> (#139293)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2025-09-25 02:52:11 +08:00 committed by GitHub
parent 8d83b7df3f
commit e45d535208
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3397,7 +3397,7 @@ def _main():
else:
print('Line: {}'.format(lineno))
print('\n')
print()
else:
print(getsource(obj))