[Python-checkins] r79970 - in python/branches/py3k: Lib/doctest.py
benjamin.peterson
python-checkins at python.org
Sun Apr 11 23:39:56 CEST 2010
Author: benjamin.peterson
Date: Sun Apr 11 23:39:55 2010
New Revision: 79970
Log:
Rolled back revisions 79307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/doctest.py
Modified: python/branches/py3k/Lib/doctest.py
==============================================================================
--- python/branches/py3k/Lib/doctest.py (original)
+++ python/branches/py3k/Lib/doctest.py Sun Apr 11 23:39:55 2010
@@ -1323,8 +1323,7 @@
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)
More information about the Python-checkins
mailing list