Commit 04b50008 authored by Benjamin Peterson's avatar Benjamin Peterson

Rolled back revisions 79307 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk
parent a6590e84
......@@ -1323,8 +1323,7 @@ class DocTestRunner:
m = self.__LINECACHE_FILENAME_RE.match(filename)
if m and m.group('name') == self.test.name:
example = self.test.examples[int(m.group('examplenum'))]
source = example.source.encode('ascii', 'backslashreplace')
return source.splitlines(True)
return example.source.splitlines(True)
else:
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