[Python-checkins] CVS: python/dist/src/Doc/lib liburllib.tex,1.25,1.26

Guido van Rossum python-dev@python.org
Thu, 24 Aug 2000 09:20:35 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26819

Modified Files:
	liburllib.tex 
Log Message:
Addresses the other half of Bug #112634 -- the documentation suggested
that you can set self.version *after* calling the base class __init__.
In fact it must be done *before*.

(Fred, maybe the version class variable should be documented now?)


Index: liburllib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liburllib.tex,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** liburllib.tex	2000/08/24 01:06:40	1.25
--- liburllib.tex	2000/08/24 16:20:32	1.26
***************
*** 177,182 ****
  class AppURLopener(urllib.FancyURLopener):
      def __init__(self, *args):
-         apply(urllib.FancyURLopener.__init__, (self,) + args)
          self.version = "App/1.7"
  
  urllib._urlopener = AppURLopener()
--- 177,182 ----
  class AppURLopener(urllib.FancyURLopener):
      def __init__(self, *args):
          self.version = "App/1.7"
+         apply(urllib.FancyURLopener.__init__, (self,) + args)
  
  urllib._urlopener = AppURLopener()