[Python-checkins] python/dist/src/Doc/lib liburllib.tex, 1.54, 1.54.4.1

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Wed Mar 9 03:57:58 CET 2005


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24601
Modified Files:
 Tag: release24-maint
	liburllib.tex 
Log Message:
backport from head
Index: liburllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib.tex,v
retrieving revision 1.54
retrieving revision 1.54.4.1
diff -u -d -r1.54 -r1.54.4.1
--- liburllib.tex	13 Jul 2004 14:03:31 -0000	1.54
+++ liburllib.tex	9 Mar 2005 02:57:55 -0000	1.54.4.1
@@ -160,8 +160,8 @@
 import urllib
 
 class AppURLopener(urllib.FancyURLopener):
+ version = "App/1.7"
 def __init__(self, *args):
- self.version = "App/1.7"
 urllib.FancyURLopener.__init__(self, *args)
 
 urllib._urlopener = AppURLopener()
@@ -243,9 +243,9 @@
 \mailheader{User-Agent} header of \samp{urllib/\var{VVV}}, where
 \var{VVV} is the \module{urllib} version number. Applications can
 define their own \mailheader{User-Agent} header by subclassing
-\class{URLopener} or \class{FancyURLopener} and setting the instance
-attribute \member{version} to an appropriate string value before the
-\method{open()} method is called.
+\class{URLopener} or \class{FancyURLopener} and setting the class
+attribute \member{version} to an appropriate string value in the
+subclass definition.
 
 The optional \var{proxies} parameter should be a dictionary mapping
 scheme names to proxy URLs, where an empty dictionary turns proxies


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /