[Zodb-checkins] CVS: StandaloneZODB/ZEO - trigger.py:1.2

Jeremy Hylton [email protected]
Fri, 7 Sep 2001 15:40:47 -0400


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv16041

Modified Files:
	trigger.py 
Log Message:
Merge in zeo-1_0-branch

Shorten two long lines, one by wrapping, another by removing an
unnecessary tuple unpacking.


=== StandaloneZODB/ZEO/trigger.py 1.1 => 1.2 ===
                         thunk()
                     except:
-                        (file, fun, line), t, v, tbinfo = asyncore.compact_traceback()
-                        print 'exception in trigger thunk: (%s:%s %s)' % (t, v, tbinfo)
+                        nil, t, v, tbinfo = asyncore.compact_traceback()
+                        print ('exception in trigger thunk:'
+                               ' (%s:%s %s)' % (t, v, tbinfo))
                 self.thunks = []
             finally:
                 self.lock.release()
 
 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
 
     class trigger (asyncore.dispatcher):
@@ -245,12 +249,9 @@
                     try:
                         thunk()
                     except:
-                        (file, fun, line), t, v, tbinfo = asyncore.compact_traceback()
-                        print 'exception in trigger thunk: (%s:%s %s)' % (t, v, tbinfo)
+                        nil, t, v, tbinfo = asyncore.compact_traceback()
+                        print ('exception in trigger thunk:'
+                               ' (%s:%s %s)' % (t, v, tbinfo))
                 self.thunks = []
             finally:
                 self.lock.release()
-
-
-
-