Skip to content

Commit ebbacb4

Browse files
committed
ENH: have shebangs consistently in every file with __name__ == "__main__"
1 parent 74fc693 commit ebbacb4

File tree

8 files changed

+9
-1
lines changed

8 files changed

+9
-1
lines changed

decorator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""https://docs.python.org/2/library/functools.html#functools.wraps"""
23
"""https://stackoverflow.com/questions/739654/how-can-i-make-a-chain-of-function-decorators-in-python/739665#739665"""
34

state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
"""Implementation of the state pattern"""
23

34
# http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/

strategy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
# http://stackoverflow.com/questions/963965/how-is-this-strategy-pattern
23
# -written-in-python-the-sample-in-wikipedia
34
"""

test_adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from adapter import Dog, Cat, Human, Car, Adapter
23
import sys
34

test_borg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from borg import Borg, YourBorg
23
import sys
34

test_command.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from command import MoveFileCommand
23
import os, shutil, subprocess, sys
34

test_hsm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from hsm import HierachicalStateMachine, UnsupportedMessageType,\
23
UnsupportedState, UnsupportedTransition, Active, Standby, Suspect, Failed
34
from sys import version_info
@@ -91,4 +92,4 @@ def test_given_standby_on_message_operator_inservice_shall_raise_exception_and_k
9192

9293

9394
if __name__ == "__main__":
94-
unittest.main()
95+
unittest.main()

test_state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
from state import Radio
23
import sys
34

0 commit comments

Comments
 (0)