Kaydet (Commit) 04b50008 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Rolled back revisions 79307 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk
üst a6590e84
...@@ -1323,8 +1323,7 @@ class DocTestRunner: ...@@ -1323,8 +1323,7 @@ class DocTestRunner:
m = self.__LINECACHE_FILENAME_RE.match(filename) m = self.__LINECACHE_FILENAME_RE.match(filename)
if m and m.group('name') == self.test.name: if m and m.group('name') == self.test.name:
example = self.test.examples[int(m.group('examplenum'))] example = self.test.examples[int(m.group('examplenum'))]
source = example.source.encode('ascii', 'backslashreplace') return example.source.splitlines(True)
return source.splitlines(True)
else: else:
return self.save_linecache_getlines(filename, module_globals) return self.save_linecache_getlines(filename, module_globals)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment