summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-08-24 16:20:32 (GMT)
committerGuido van Rossum <guido@python.org>2000-08-24 16:20:32 (GMT)
commit3d0c77b37c3a274c85ffbeffe7d4589abe9fbeb1 (patch)
tree7e6006465b8d09b217c57c49b35e3f6942b4b42d /Doc
parentba3113807dc63e827463d641c1b4511b064d3c88 (diff)
downloadcpython-3d0c77b37c3a274c85ffbeffe7d4589abe9fbeb1.zip
cpython-3d0c77b37c3a274c85ffbeffe7d4589abe9fbeb1.tar.gz
cpython-3d0c77b37c3a274c85ffbeffe7d4589abe9fbeb1.tar.bz2
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?)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/liburllib.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex
index 3eb1265..a41f728 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}