PYADPT-87 - "Drop usless `__main__` part form module" 2.2.0-RC1
authorheck <heck@pep.foundation>
Tue, 27 Oct 2020 19:58:39 +0100
changeset 446f18e1ddd738b
parent 445 c24826afdc29
child 447 dbdf65c73471
PYADPT-87 - "Drop usless `__main__` part form module"
src/pEp/__init__.py
     1.1 --- a/src/pEp/__init__.py	Tue Oct 27 19:44:19 2020 +0100
     1.2 +++ b/src/pEp/__init__.py	Tue Oct 27 19:58:39 2020 +0100
     1.3 @@ -56,13 +56,4 @@
     1.4      print("overwrite this method")
     1.5  
     1.6  
     1.7 -# Executed when run as script
     1.8 -def main():
     1.9 -    print("I am being run as a script")
    1.10 -
    1.11 -
    1.12 -# MAIN
    1.13 -if __name__ == "__main__":
    1.14 -    main()
    1.15 -else:
    1.16 -    init()
    1.17 +init()