commit | d9f57630fed16bd1e97737f8afc22b5cc6645769 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Thu Oct 14 20:56:20 2010 +0000 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Thu Oct 14 20:56:20 2010 +0000 |
tree | 8a0a93c0bc7be99d617d4e675e11ccce5ac6e2be | |
parent | d778e568baa0cefaeca379366719877db653b663 [diff] [blame] |
Fix the regex to match all kind of filenames, for interactive debugging in doctests. (issue #9409)
diff --git a/Lib/doctest.py b/Lib/doctest.py index 0a0dafd..e15f704 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py
@@ -1319,7 +1319,7 @@ self.tries += t __LINECACHE_FILENAME_RE = re.compile(r'<doctest ' - r'(?P<name>[\w\.]+)' + r'(?P<name>.+)' r'\[(?P<examplenum>\d+)\]>$') def __patched_linecache_getlines(self, filename, module_globals=None): m = self.__LINECACHE_FILENAME_RE.match(filename)