From: Andrew M. Kuchling Date: Mon, 22 Feb 2010 22:16:58 +0000 (+0000) Subject: #6666: fix bug in trace.py that applied the list of ignored dirs only to 1st file X-Git-Tag: v3.2a1~1653 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1f9bebd991bc8aff0f4f1ca8774b029eb875584;p=thirdparty%2FPython%2Fcpython.git #6666: fix bug in trace.py that applied the list of ignored dirs only to 1st file --- diff --git a/Lib/trace.py b/Lib/trace.py index 9ce240fde5f6..e6316b69191b 100644 --- a/Lib/trace.py +++ b/Lib/trace.py @@ -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 = { '': 1 } def names(self, filename, modulename): diff --git a/Misc/NEWS b/Misc/NEWS index 7cbe87ad79ef..3a2c96327dc2 100644 --- 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.