diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-04-11 21:39:55 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-04-11 21:39:55 (GMT) |
commit | 04b50008c6af15516a60177aa3bf44f1f0f8bb31 (patch) | |
tree | be4dcd311579dd225252c3aaa11f3e5aa589ab64 | |
parent | a6590e84056f595be4775e8b978349b753008fa4 (diff) | |
download | cpython-04b50008c6af15516a60177aa3bf44f1f0f8bb31.zip cpython-04b50008c6af15516a60177aa3bf44f1f0f8bb31.tar.gz cpython-04b50008c6af15516a60177aa3bf44f1f0f8bb31.tar.bz2 |
Rolled back revisions 79307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
-rw-r--r-- | Lib/doctest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py index bcc200e..3b32004 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -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) |