Add comment that urlopen opens local files without universal newlines

This commit is contained in:
Brett Cannon 2003-04-29 04:11:12 +00:00
parent a1af767c4d
commit a2f8737faf
1 changed files with 8 additions and 8 deletions

View File

@ -21,14 +21,14 @@ It defines the following public functions:
\begin{funcdesc}{urlopen}{url\optional{, data\optional{, proxies}}}
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
identifier, this opens a local file; otherwise it opens a socket to a
server somewhere on the network. If the connection cannot be made, or
if the server returns an error code, the \exception{IOError} exception
is raised. If all went well, a file-like object is returned. This
supports the following methods: \method{read()}, \method{readline()},
\method{readlines()}, \method{fileno()}, \method{close()},
\method{info()} and \method{geturl()}. It also has proper support for
the iterator protocol.
identifier, this opens a local file (without universal newlines);
otherwise it opens a socket to a server somewhere on the network. If
the connection cannot be made, or if the server returns an error code,
the \exception{IOError} exception is raised. If all went well, a
file-like object is returned. This supports the following methods:
\method{read()}, \method{readline()}, \method{readlines()}, \method{fileno()},
\method{close()}, \method{info()} and \method{geturl()}. It also has
proper support for the iterator protocol.
Except for the \method{info()} and \method{geturl()} methods,
these methods have the same interface as for