mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Add 'if __name__ == "__main__":' to files already as a usable as a module.
This commit is contained in:
parent
9324526a76
commit
7a8c43ee6a
13 changed files with 29 additions and 18 deletions
|
@ -88,4 +88,5 @@ def main():
|
|||
curfile = FileObj(filename)
|
||||
curfile.process(lineno, line[n:])
|
||||
|
||||
main()
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue