diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-05-23 15:15:30 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-05-23 15:15:30 (GMT) |
commit | 8ac1495a6a1d18111a626cec0c7f2eb67df3edb3 (patch) | |
tree | 2d91993770d3a5b3f3668857983d9bf75276b14f /Lib/StringIO.py | |
parent | f655328483b2e237cc2f71c1c308eceb2f30f6fd (diff) | |
download | cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.zip cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.gz cpython-8ac1495a6a1d18111a626cec0c7f2eb67df3edb3.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/StringIO.py')
-rw-r--r-- | Lib/StringIO.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/StringIO.py b/Lib/StringIO.py index b8cba32..bdf11cc 100644 --- a/Lib/StringIO.py +++ b/Lib/StringIO.py @@ -37,16 +37,16 @@ except ImportError: __all__ = ["StringIO"] class StringIO: - """class StringIO([buffer]) - + """class StringIO([buffer]) + When a StringIO object is created, it can be initialized to an existing string by passing the string to the constructor. If no string is given, - the StringIO will start empty. + the StringIO will start empty. The StringIO object can accept either Unicode or 8-bit strings, but mixing the two may take some care. If both are used, 8-bit strings that cannot be interpreted as 7-bit ASCII (that use the 8th bit) will cause - a UnicodeError to be raised when getvalue() is called. + a UnicodeError to be raised when getvalue() is called. """ def __init__(self, buf = ''): # Force self.buf to be a string or unicode @@ -63,7 +63,7 @@ class StringIO: return iter(self.readline, '') def close(self): - """Free the memory buffer. + """Free the memory buffer. """ if not self.closed: self.closed = 1 @@ -186,7 +186,7 @@ class StringIO: but mixing the two may take some care. If both are used, 8-bit strings that cannot be interpreted as 7-bit ASCII (that use the 8th bit) will cause a UnicodeError to be raised when getvalue() - is called. + is called. """ if self.buflist: self.buf += ''.join(self.buflist) |