py23: minor typo in docstring

This commit is contained in:
Cosimo Lupo 2016-12-14 10:03:49 +00:00
parent fcd697a328
commit 1a9389653c
No known key found for this signature in database
GPG Key ID: B61AAAD0B53A6419

View File

@ -189,7 +189,7 @@ def open(file, mode='r', buffering=-1, encoding=None, errors=None,
One difference is that the 'opener' keyword argument is only supported in
Python 3. Here we pass the value of 'opener' only when it is not None.
This causes Python 2 to raise TypeError, complaining about the number of
expected arguments, so it must be avoided if py2 or py2-3 contexts.
expected arguments, so it must be avoided in py2 or py2-3 contexts.
Another difference between 2 and 3, this time on Windows, has to do with
opening files by name or by file descriptor.