~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Doc/library/urllib2.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:36:32 UTC
  • mfrom: (39021.1.402 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143632-wwwkx92u1t5l7yd3
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
   returns a string in this format.
28
28
 
29
29
   The optional *timeout* parameter specifies a timeout in seconds for blocking
30
 
   operations like the connection attempt (if not specified, or passed as
31
 
   ``None``, the global default timeout setting will be used).  This actually
32
 
   only works for HTTP, HTTPS, FTP and FTPS connections.
 
30
   operations like the connection attempt (if not specified, the global default
 
31
   timeout setting will be used).  This actually only works for HTTP, HTTPS,
 
32
   FTP and FTPS connections.
33
33
 
34
34
   This function returns a file-like object with two additional methods:
35
35
 
411
411
   the same as those of :func:`urlopen` (which simply calls the :meth:`open`
412
412
   method on the currently installed global :class:`OpenerDirector`).  The
413
413
   optional *timeout* parameter specifies a timeout in seconds for blocking
414
 
   operations like the connection attempt (if not specified, or passed as
415
 
   ``None``, the global default timeout setting will be used; this actually only
416
 
   works for HTTP, HTTPS, FTP and FTPS connections).
 
414
   operations like the connection attempt (if not specified, the global default
 
415
   timeout setting will be usedi). The timeout feature actually works only for
 
416
   HTTP, HTTPS, FTP and FTPS connections).
417
417
 
418
418
   .. versionchanged:: 2.6
419
419
      *timeout* was added.