-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change shebang to python2 (see PEP394)
Would've prevented #7
- Loading branch information
Showing
9 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -150,4 +150,4 @@ def invalidaccess(c): | |
|
||
if __name__ == "__main__": | ||
#import sys;sys.argv = ['', 'Test.testName'] | ||
unittest.main() | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -181,4 +181,4 @@ def tearDown(self): | |
|
||
if __name__ == "__main__": | ||
#import sys;sys.argv = ['', 'Test.testName'] | ||
unittest.main() | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -41,4 +41,4 @@ | |
from modules.source.db_test import * | ||
|
||
#import sys;sys.argv = ['', 'Test.testName'] | ||
unittest.main() | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> | ||
|
@@ -166,4 +166,4 @@ def tearDown(self): | |
|
||
if __name__ == "__main__": | ||
#import sys;sys.argv = ['', 'Test.testName'] | ||
unittest.main() | ||
unittest.main() |