From 04b50008c6af15516a60177aa3bf44f1f0f8bb31 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 Apr 2010 21:39:55 +0000 Subject: Rolled back revisions 79307 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk --- Lib/doctest.py | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit v0.12