[Zope3-checkins] CVS: Zope3/utilities - unittestgui.py:1.10

Martijn Pieters mj@zope.com
Mon, 22 Jul 2002 14:41:45 -0400


Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv6336/utilities

Modified Files:
	unittestgui.py 
Log Message:
Fix detection of traceback lines pointing to code not in a method, function
or class.


=== Zope3/utilities/unittestgui.py 1.9 => 1.10 ===
         window.destroy()
 
     def attachEditorHotspots(self, text,
-            fileLine=re.compile('(File "([^"]+)", line (\d+), in \w+)'),
+            fileLine=re.compile('(File "([^"]+)", line (\d+)(?:, in \w+)?)'),
             methodLine=re.compile('^\s*(\S.*\S)\s*$')):
         # Attach clickable regions to a traceback displayed in a Text widget.
         tracebackLines = text.get('1.0', tk.END).splitlines(1)