From: Benjamin Peterson Date: Sun, 11 Apr 2010 21:39:55 +0000 (+0000) Subject: Rolled back revisions 79307 via svnmerge from X-Git-Tag: v3.2a1~1181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04b50008c6af15516a60177aa3bf44f1f0f8bb31;p=python Rolled back revisions 79307 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk --- diff --git a/Lib/doctest.py b/Lib/doctest.py index bcc200e23e..3b32004b88 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)