Commit d76c80aa authored by Jeremy Hylton's avatar Jeremy Hylton

Merge in zeo-1_0-branch

Shorten two long lines, one by wrapping, another by removing an
unnecessary tuple unpacking.
parent d0c5419e
...@@ -166,14 +166,18 @@ if os.name == 'posix': ...@@ -166,14 +166,18 @@ if os.name == 'posix':
try: try:
thunk() thunk()
except: except:
(file, fun, line), t, v, tbinfo = asyncore.compact_traceback() nil, t, v, tbinfo = asyncore.compact_traceback()
print 'exception in trigger thunk: (%s:%s %s)' % (t, v, tbinfo) print ('exception in trigger thunk:'
' (%s:%s %s)' % (t, v, tbinfo))
self.thunks = [] self.thunks = []
finally: finally:
self.lock.release() self.lock.release()
else: else:
# XXX Should define a base class that has the common methods and
# then put the platform-specific in a subclass named trigger.
# win32-safe version # win32-safe version
class trigger (asyncore.dispatcher): class trigger (asyncore.dispatcher):
...@@ -245,12 +249,9 @@ else: ...@@ -245,12 +249,9 @@ else:
try: try:
thunk() thunk()
except: except:
(file, fun, line), t, v, tbinfo = asyncore.compact_traceback() nil, t, v, tbinfo = asyncore.compact_traceback()
print 'exception in trigger thunk: (%s:%s %s)' % (t, v, tbinfo) print ('exception in trigger thunk:'
' (%s:%s %s)' % (t, v, tbinfo))
self.thunks = [] self.thunks = []
finally: finally:
self.lock.release() self.lock.release()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment