diff options
author | Guido van Rossum <guido@python.org> | 2007-06-07 00:54:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-07 00:54:15 (GMT) |
commit | 9cbfffd1a63ee944dedda758ac1d1963d4cbf3b1 (patch) | |
tree | 80f78198ee6b9b7bd28d1124d62438f7b796c10d /Lib/io.py | |
parent | e7ba4956272a7105ea90dd505f70e5947aa27161 (diff) | |
download | cpython-9cbfffd1a63ee944dedda758ac1d1963d4cbf3b1.zip cpython-9cbfffd1a63ee944dedda758ac1d1963d4cbf3b1.tar.gz cpython-9cbfffd1a63ee944dedda758ac1d1963d4cbf3b1.tar.bz2 |
tokenizer.c: make coding markup work again.
io.open() now takes all positional parameters (so we can conveniently
call it from C code).
test_tarfile.py no longer uses u"..." literals, but is otherwise still
badly broken.
This is a checkpoint; some more stuff now breaks.
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -49,7 +49,7 @@ class BlockingIOError(IOError): self.characters_written = characters_written -def open(file, mode="r", buffering=None, *, encoding=None, newline=None): +def open(file, mode="r", buffering=None, encoding=None, newline=None): """Replacement for the built-in open function. Args: @@ -59,7 +59,6 @@ def open(file, mode="r", buffering=None, *, encoding=None, newline=None): buffering: optional int >= 0 giving the buffer size; values can be: 0 = unbuffered, 1 = line buffered, larger = fully buffered. - Keywords (for text modes only; *must* be given as keyword arguments): encoding: optional string giving the text encoding. newline: optional newlines specifier; must be None, '\n' or '\r\n'; specifies the line ending expected on input and written on |