[Python-checkins] python/dist/src/Doc/lib liburllib.tex,1.48,1.49

bcannon@users.sourceforge.net bcannon@users.sourceforge.net
Mon, 28 Apr 2003 21:11:14 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv13809/Doc/lib

Modified Files:
	liburllib.tex 
Log Message:
Add comment that urlopen opens local files without universal newlines

Index: liburllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib.tex,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** liburllib.tex	24 Apr 2003 16:22:47 -0000	1.48
--- liburllib.tex	29 Apr 2003 04:11:12 -0000	1.49
***************
*** 22,33 ****
  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.
  
  Except for the \method{info()} and \method{geturl()} methods,
--- 22,33 ----
  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 (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,