mirror of https://github.com/python/cpython.git
Rolled back revisions 79307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
This commit is contained in:
parent
a6590e8405
commit
04b50008c6
|
@ -1323,8 +1323,7 @@ def __patched_linecache_getlines(self, filename, module_globals=None):
|
|||
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue