Skip to content

Commit

Permalink
Change shebang to python2 (see PEP394)
Browse files Browse the repository at this point in the history
Would've prevented #7
  • Loading branch information
hacst committed Oct 22, 2016
1 parent dd19472 commit 0361021
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions config_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -150,4 +150,4 @@ def invalidaccess(c):

if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main()
unittest.main()
2 changes: 1 addition & 1 deletion mumo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010-2013 Stefan Hacker <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion mumo_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions mumo_manager_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -181,4 +181,4 @@ def tearDown(self):

if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main()
unittest.main()
4 changes: 2 additions & 2 deletions mumo_module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -98,4 +98,4 @@ def new_fu(self, *args, **kwargs):
kwargss = '' if len(kwargs)==0 else ','.join('%s="%s"' % (kw, str(arg)) for kw, arg in kwargs.iteritems())
log.debug("%s(%s%s%s)", fu.__name__, str(self), argss, kwargss)
return fu(self, *args, **kwargs)
return new_fu
return new_fu
4 changes: 2 additions & 2 deletions testsuite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -41,4 +41,4 @@
from modules.source.db_test import *

#import sys;sys.argv = ['', 'Test.testName']
unittest.main()
unittest.main()
4 changes: 2 additions & 2 deletions worker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -143,4 +143,4 @@ def call_by_name(self, handler, function_name, *args, **kwargs):

@local_thread_blocking
def call_by_name_blocking(self, handler, function_name, *args, **kwargs):
return getattr(handler, function_name)(*args, **kwargs)
return getattr(handler, function_name)(*args, **kwargs)
4 changes: 2 additions & 2 deletions worker_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
# -*- coding: utf-8

# Copyright (C) 2010 Stefan Hacker <[email protected]>
Expand Down Expand Up @@ -166,4 +166,4 @@ def tearDown(self):

if __name__ == "__main__":
#import sys;sys.argv = ['', 'Test.testName']
unittest.main()
unittest.main()

0 comments on commit 0361021

Please sign in to comment.