]> granicus.if.org Git - python/commitdiff
#6666: fix bug in trace.py that applied the list of ignored dirs only to 1st file
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 22:16:58 +0000 (22:16 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 22:16:58 +0000 (22:16 +0000)
Lib/trace.py
Misc/NEWS

index 9ce240fde5f669e2976b585d2d9d3888d2f72aa6..e6316b69191b389d330626be04381f2630886e1b 100644 (file)
@@ -117,7 +117,7 @@ class Ignore:
         self._mods = modules or []
         self._dirs = dirs or []
 
-        self._dirs = map(os.path.normpath, self._dirs)
+        self._dirs = list(map(os.path.normpath, self._dirs))
         self._ignore = { '<string>': 1 }
 
     def names(self, filename, modulename):
index 7cbe87ad79ef8d6ce75b81553dd3c588a186256a..3a2c96327dc2b60f65e88be2031eeadb14164628 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -250,6 +250,9 @@ C-API
 Library
 -------
 
+- Issue #6666: fix bug in trace.py that applied the list of directories
+  to be ignored only to the first file.  Noted by Bogdan Opanchuk.
+
 - Issue #7597: curses.use_env() can now be called before initscr().
   Noted by Kan-Ru Chen.