Commits

Guido van Rossum  committed c12e796

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?)

  • Participants
  • Parent commits e7c8b59
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/lib/liburllib.tex

 \begin{verbatim}
 class AppURLopener(urllib.FancyURLopener):
     def __init__(self, *args):
+        self.version = "App/1.7"
         apply(urllib.FancyURLopener.__init__, (self,) + args)
-        self.version = "App/1.7"
 
 urllib._urlopener = AppURLopener()
 \end{verbatim}