Merged revisions 78340 via svnmerge from
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 22:21:05 +0000 (22:21 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 22 Feb 2010 22:21:05 +0000 (22:21 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r78340 | andrew.kuchling | 2010-02-22 17:16:58 -0500 (Mon, 22 Feb 2010) | 1 line

  #6666: fix bug in trace.py that applied the list of ignored dirs only to 1st file
........

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 0a997733ad9df16c37f77c3b6020cd328a18cf78..aa33a4bf53207506027eeda9a0ad803aab4d9533 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -82,6 +82,9 @@ Core and Builtins
 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.