blob: c592d2592b07c2ce442f18f536220745ccab34ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#
# StringIO-based cStringIO implementation.
#
# Note that PyPy also contains a built-in module 'cStringIO' which will hide
# this one if compiled in.
from StringIO import *
from StringIO import __doc__
class StringIO(StringIO):
def reset(self):
"""
reset() -- Reset the file position to the beginning
"""
self.seek(0, 0)
|