From: Guido van Rossum Date: Thu, 24 Aug 2000 16:20:32 +0000 (+0000) Subject: Addresses the other half of Bug #112634 -- the documentation suggested X-Git-Tag: v2.0b1~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d0c77b37c3a274c85ffbeffe7d4589abe9fbeb1;p=thirdparty%2FPython%2Fcpython.git 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?) --- diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex index 3eb126549b64..a41f7287c740 100644 --- a/Doc/lib/liburllib.tex +++ b/Doc/lib/liburllib.tex @@ -176,8 +176,8 @@ accomplished with the following code: \begin{verbatim} class AppURLopener(urllib.FancyURLopener): def __init__(self, *args): - apply(urllib.FancyURLopener.__init__, (self,) + args) self.version = "App/1.7" + apply(urllib.FancyURLopener.__init__, (self,) + args) urllib._urlopener = AppURLopener() \end{verbatim}