mirror of
https://github.com/python/cpython.git
synced 2025-09-02 06:57:58 +00:00
[Patch #1005491 ] use __name__ == '__main__' in scripts
This commit is contained in:
parent
6c542b731c
commit
e236b38731
34 changed files with 257 additions and 200 deletions
|
@ -2,4 +2,6 @@
|
|||
# importing itself (Python began allowing import of .pyw files
|
||||
# between 2.2a1 and 2.2a2).
|
||||
import pydoc
|
||||
pydoc.gui()
|
||||
|
||||
if __name__ == '__main__':
|
||||
pydoc.gui()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue