[Python-checkins] r77896 - python/branches/py3k/Lib/doctest.py
antoine.pitrou
python-checkins at python.org
Mon Feb 1 00:12:30 CET 2010
Author: antoine.pitrou
Date: Mon Feb 1 00:12:29 2010
New Revision: 77896
Log:
r77895 broke doctest.
Modified:
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 Mon Feb 1 00:12:29 2010
@@ -247,7 +247,8 @@
return result
def truncate(self, size=None):
- StringIO.truncate(self, size)
+ self.seek(size)
+ StringIO.truncate(self)
# Worst-case linear-time ellipsis matching.
def _ellipsis_match(want, got):
More information about the Python-checkins
mailing list