From 0361021fbdf3d4a44e0ee9b7ad67625e1d7230b8 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Fri, 21 Oct 2016 22:53:36 +0200 Subject: [PATCH] Change shebang to python2 (see PEP394) Would've prevented #7 --- config.py | 2 +- config_test.py | 4 ++-- mumo.py | 2 +- mumo_manager.py | 2 +- mumo_manager_test.py | 4 ++-- mumo_module.py | 4 ++-- testsuite.py | 4 ++-- worker.py | 4 ++-- worker_test.py | 4 ++-- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/config.py b/config.py index e11ad08..d840e6f 100644 --- a/config.py +++ b/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker diff --git a/config_test.py b/config_test.py index 823b3a3..e4a9746 100644 --- a/config_test.py +++ b/config_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -150,4 +150,4 @@ value = True if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main() diff --git a/mumo.py b/mumo.py index 4a8e856..1140c2b 100755 --- a/mumo.py +++ b/mumo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010-2013 Stefan Hacker diff --git a/mumo_manager.py b/mumo_manager.py index 6a677d5..18f6f70 100644 --- a/mumo_manager.py +++ b/mumo_manager.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker diff --git a/mumo_manager_test.py b/mumo_manager_test.py index 680ace1..77873ef 100644 --- a/mumo_manager_test.py +++ b/mumo_manager_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -181,4 +181,4 @@ class MumoManagerTest(unittest.TestCase): if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main() diff --git a/mumo_module.py b/mumo_module.py index 5815ed4..7c09b49 100644 --- a/mumo_module.py +++ b/mumo_module.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -98,4 +98,4 @@ def logModFu(fu): 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 \ No newline at end of file + return new_fu diff --git a/testsuite.py b/testsuite.py index 1675d08..1e5ceb7 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -41,4 +41,4 @@ if __name__ == "__main__": from modules.source.db_test import * #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main() diff --git a/worker.py b/worker.py index d5fce95..36d6ffd 100644 --- a/worker.py +++ b/worker.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -143,4 +143,4 @@ class Worker(Thread): @local_thread_blocking def call_by_name_blocking(self, handler, function_name, *args, **kwargs): - return getattr(handler, function_name)(*args, **kwargs) \ No newline at end of file + return getattr(handler, function_name)(*args, **kwargs) diff --git a/worker_test.py b/worker_test.py index d54b45e..4efbd65 100644 --- a/worker_test.py +++ b/worker_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # -*- coding: utf-8 # Copyright (C) 2010 Stefan Hacker @@ -166,4 +166,4 @@ class WorkerTest(unittest.TestCase): if __name__ == "__main__": #import sys;sys.argv = ['', 'Test.testName'] - unittest.main() \ No newline at end of file + unittest.main()