future print
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from __future__ import print_function
|
||||
|
||||
try:
|
||||
import _dbapi
|
||||
except ImportError:
|
||||
@@ -40,5 +42,5 @@ def debugHooks():
|
||||
"""
|
||||
for h in hooknames:
|
||||
def _showstate(state=h):
|
||||
print 'Reached state',state
|
||||
print('Reached state',state)
|
||||
addHook(h, _showstate)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
from __future__ import print_function
|
||||
import threading, traceback
|
||||
|
||||
class StoppableThread(threading.Thread):
|
||||
@@ -161,7 +162,7 @@ class Worker(threading.Thread):
|
||||
try:
|
||||
F(*A,**K)
|
||||
except:
|
||||
print 'Error running',F,A,K
|
||||
print('Error running',F,A,K)
|
||||
traceback.print_exc()
|
||||
finally:
|
||||
self._update.acquire()
|
||||
|
||||
Reference in New Issue
Block a user