Index: ../Lib/trace.py =================================================================== --- ../Lib/trace.py (revision 74343) +++ ../Lib/trace.py (working copy) @@ -117,7 +117,7 @@ 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):