mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
r77895 broke doctest.
This commit is contained in:
parent
905a2ffe3e
commit
b3d77007f4
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ class _SpoofOut(StringIO):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def truncate(self, size=None):
|
def truncate(self, size=None):
|
||||||
StringIO.truncate(self, size)
|
self.seek(size)
|
||||||
|
StringIO.truncate(self)
|
||||||
|
|
||||||
# Worst-case linear-time ellipsis matching.
|
# Worst-case linear-time ellipsis matching.
|
||||||
def _ellipsis_match(want, got):
|
def _ellipsis_match(want, got):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue