diff options
author | Brett Cannon <bcannon@gmail.com> | 2003-04-29 04:11:12 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2003-04-29 04:11:12 (GMT) |
commit | a2f8737faf02c49b0b98a2d789b1cd7537a36bbe (patch) | |
tree | 5d958f23f6337eaddaa90bdada630e4450527646 /Doc | |
parent | a1af767c4d6d8343bababf60860bec2b0886a2d5 (diff) | |
download | cpython-a2f8737faf02c49b0b98a2d789b1cd7537a36bbe.zip cpython-a2f8737faf02c49b0b98a2d789b1cd7537a36bbe.tar.gz cpython-a2f8737faf02c49b0b98a2d789b1cd7537a36bbe.tar.bz2 |
Add comment that urlopen opens local files without universal newlines
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/liburllib.tex | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex index 89e4cb3..a8ee7bc 100644 --- a/Doc/lib/liburllib.tex +++ b/Doc/lib/liburllib.tex @@ -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 |