diff options
| author | Guido van Rossum <guido@python.org> | 2000-08-24 16:20:32 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2000-08-24 16:20:32 +0000 |
| commit | fc8374fa7a23d3dc99f1dda327b71e9f8265e7a0 (patch) | |
| tree | 4a8d3d59c8acd1562abe52cbac1d4ccaf78d3bd2 | |
| parent | 906416f5675556debe8ca6d02a2fa1f06019ff9f (diff) | |
| download | cpython-fc8374fa7a23d3dc99f1dda327b71e9f8265e7a0.tar.gz | |
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?)
| -rw-r--r-- | Doc/lib/liburllib.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/liburllib.tex b/Doc/lib/liburllib.tex index 3eb126549b..a41f7287c7 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} |
