Add comment that urlopen opens local files without universal newlines
This commit is contained in:
parent
a1af767c4d
commit
a2f8737faf
|
@ -21,14 +21,14 @@ It defines the following public functions:
|
||||||
\begin{funcdesc}{urlopen}{url\optional{, data\optional{, proxies}}}
|
\begin{funcdesc}{urlopen}{url\optional{, data\optional{, proxies}}}
|
||||||
Open a network object denoted by a URL for reading. If the URL does
|
Open a network object denoted by a URL for reading. If the URL does
|
||||||
not have a scheme identifier, or if it has \file{file:} as its scheme
|
not have a scheme identifier, or if it has \file{file:} as its scheme
|
||||||
identifier, this opens a local file; otherwise it opens a socket to a
|
identifier, this opens a local file (without universal newlines);
|
||||||
server somewhere on the network. If the connection cannot be made, or
|
otherwise it opens a socket to a server somewhere on the network. If
|
||||||
if the server returns an error code, the \exception{IOError} exception
|
the connection cannot be made, or if the server returns an error code,
|
||||||
is raised. If all went well, a file-like object is returned. This
|
the \exception{IOError} exception is raised. If all went well, a
|
||||||
supports the following methods: \method{read()}, \method{readline()},
|
file-like object is returned. This supports the following methods:
|
||||||
\method{readlines()}, \method{fileno()}, \method{close()},
|
\method{read()}, \method{readline()}, \method{readlines()}, \method{fileno()},
|
||||||
\method{info()} and \method{geturl()}. It also has proper support for
|
\method{close()}, \method{info()} and \method{geturl()}. It also has
|
||||||
the iterator protocol.
|
proper support for the iterator protocol.
|
||||||
|
|
||||||
Except for the \method{info()} and \method{geturl()} methods,
|
Except for the \method{info()} and \method{geturl()} methods,
|
||||||
these methods have the same interface as for
|
these methods have the same interface as for
|
||||||
|
|
Loading…
Reference in New Issue