Skip to content

Commit 8cb602f

Browse files
Slight improvement to code style.
1 parent 9af5c27 commit 8cb602f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pythonrepo/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,3 @@
4141
raise baton
4242

4343

44-
if __name__ in '__main__':
45-
pass

pythonrepo/pythonrepo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
raise baton
3535

3636

37-
from . import __version__ as __version__
37+
from . import __version__
3838
"""The version of this program."""
3939

4040

@@ -131,6 +131,6 @@ def main(*argv):
131131
exit(0)
132132

133133

134-
if __name__ == '__main__':
134+
if __name__ in '__main__':
135135
if (sys.argv is not None) and (len(sys.argv) >= 1):
136136
main(sys.argv[1:])

0 commit comments

Comments
 (0)