Skip to content

Commit 9af5c27

Browse files
Regression fix for code style.
1 parent 4a3bc67 commit 9af5c27

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

pythonrepo/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,4 @@
4242

4343

4444
if __name__ in '__main__':
45-
if pythonrepo.__name__ is None:
46-
raise ImportError(str("Failed to open pythonrepo"))
47-
pythonrepo.main(sys.argv[1:])
45+
pass

pythonrepo/pythonrepo.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
raise baton
3535

3636

37+
from . import __version__ as __version__
38+
"""The version of this program."""
39+
40+
3741
__prog__ = str(__module__)
3842
"""The name of this program is PythonRepo"""
3943

@@ -50,11 +54,6 @@
5054
"""Contains the short epilog of the program CLI help text."""
5155

5256

53-
from . import __version__ as __version__
54-
# __version__ = """1.1.4"""
55-
"""The version of this program."""
56-
57-
5857
# Add your functions here
5958

6059

0 commit comments

Comments
 (0)