mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +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
|
@ -201,4 +201,5 @@ def okay(prompt, answer='ask'):
|
|||
print "Yes or No please -- try again:"
|
||||
return okay(prompt)
|
||||
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue