[Python-checkins] r53735 - in python/trunk: Lib/trace.py Misc/NEWS

skip.montanaro python-checkins at python.org
Sun Feb 11 19:24:38 CET 2007


Author: skip.montanaro
Date: Sun Feb 11 19:24:37 2007
New Revision: 53735

Modified:
   python/trunk/Lib/trace.py
   python/trunk/Misc/NEWS
Log:
fix trace.py --ignore-dir

Modified: python/trunk/Lib/trace.py
==============================================================================
--- python/trunk/Lib/trace.py	(original)
+++ python/trunk/Lib/trace.py	Sun Feb 11 19:24:37 2007
@@ -587,7 +587,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/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Sun Feb 11 19:24:37 2007
@@ -128,6 +128,9 @@
 Library
 -------
 
+- Patch 1571379: Make trace's --ignore-dir facility work in the face of
+  relative directory names.
+
 - Bug #1600860: Search for shared python library in LIBDIR, not lib/python/config,
   on "linux" and "gnu" systems.
 


More information about the Python-checkins mailing list