r77895 broke doctest.

This commit is contained in:
Antoine Pitrou 2010-01-31 23:12:29 +00:00
parent 905a2ffe3e
commit b3d77007f4
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ class _SpoofOut(StringIO):
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):