diff options
Diffstat (limited to 'doc/data/messages/c/consider-using-sys-exit')
-rw-r--r-- | doc/data/messages/c/consider-using-sys-exit/bad.py | 2 | ||||
-rw-r--r-- | doc/data/messages/c/consider-using-sys-exit/good.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/data/messages/c/consider-using-sys-exit/bad.py b/doc/data/messages/c/consider-using-sys-exit/bad.py index 40947189c..8617a2a4e 100644 --- a/doc/data/messages/c/consider-using-sys-exit/bad.py +++ b/doc/data/messages/c/consider-using-sys-exit/bad.py @@ -1,4 +1,4 @@ if __name__ == '__main__': user = input('Enter user name: ') print(f'Hello, {user}') - exit(0) # [consider-using-sys-exit]
\ No newline at end of file + exit(0) # [consider-using-sys-exit] diff --git a/doc/data/messages/c/consider-using-sys-exit/good.py b/doc/data/messages/c/consider-using-sys-exit/good.py index e5142dcda..0a73ae4ae 100644 --- a/doc/data/messages/c/consider-using-sys-exit/good.py +++ b/doc/data/messages/c/consider-using-sys-exit/good.py @@ -3,4 +3,4 @@ import sys if __name__ == '__main__': user = input('Enter user name: ') print(f'Hello, {user}') - sys.exit(0)
\ No newline at end of file + sys.exit(0) |