Rolled back revisions 79307 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk
This commit is contained in:
Benjamin Peterson 2010-04-11 21:39:55 +00:00
parent a6590e8405
commit 04b50008c6
1 changed files with 1 additions and 2 deletions

View File

@ -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)