]> granicus.if.org Git - python/commitdiff
Add comment that urlopen opens local files without universal newlines
authorBrett Cannon <bcannon@gmail.com>
Tue, 29 Apr 2003 04:11:12 +0000 (04:11 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 29 Apr 2003 04:11:12 +0000 (04:11 +0000)
Doc/lib/liburllib.tex

index 89e4cb39f9cfd231af307470e2604efa01599b28..a8ee7bc8151b9bcf27dc34fdd0f46d81d8dc7e40 100644 (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