[Python-checkins] r53736 - in python/branches/release24-maint: Lib/trace.py Misc/NEWS

skip.montanaro python-checkins at python.org
Sun Feb 11 19:37:55 CET 2007


Author: skip.montanaro
Date: Sun Feb 11 19:37:54 2007
New Revision: 53736

Modified:
   python/branches/release24-maint/Lib/trace.py
   python/branches/release24-maint/Misc/NEWS
Log:
backport: fix trace.py --ignore-dir

Modified: python/branches/release24-maint/Lib/trace.py
==============================================================================
--- python/branches/release24-maint/Lib/trace.py	(original)
+++ python/branches/release24-maint/Lib/trace.py	Sun Feb 11 19:37:54 2007
@@ -583,7 +583,7 @@
         """
         if why == 'call':
             code = frame.f_code
-            filename = code.co_filename
+            filename = frame.f_globals.get('__file__', None)
             if filename:
                 # XXX modname() doesn't work right for packages, so
                 # the ignore support won't work right for packages

Modified: python/branches/release24-maint/Misc/NEWS
==============================================================================
--- python/branches/release24-maint/Misc/NEWS	(original)
+++ python/branches/release24-maint/Misc/NEWS	Sun Feb 11 19:37:54 2007
@@ -192,6 +192,9 @@
 Library
 -------
 
+- Patch 1571379: Make trace's --ignore-dir facility work in the face of
+  relative directory names.
+
 - Bug #1545341: The 'classifier' keyword argument to the Distutils setup()
   function now accepts tuples as well as lists.
 


More information about the Python-checkins mailing list