In Python 3 print is a function

This commit is contained in:
JoeLametta
2018-05-02 08:00:00 +00:00
parent 37fd1c6bb2
commit 44ece38740
12 changed files with 36 additions and 36 deletions

View File

@@ -150,7 +150,7 @@ class Task(LogStub):
self.debug('stopping')
self.running = False
if not self.runner:
print 'ERROR: stopping task which is already stopped'
print('ERROR: stopping task which is already stopped')
import traceback
traceback.print_stack()
self.runner = None
@@ -214,7 +214,7 @@ class Task(LogStub):
def schedule(self, delta, callable, *args, **kwargs):
if not self.runner:
print "ERROR: scheduling on a task that's altready stopped"
print("ERROR: scheduling on a task that's altready stopped")
import traceback
traceback.print_stack()
return