diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-11 13:38:51 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-11 13:38:51 (GMT) |
commit | 60e04cd317201f43b612e99444eac297fae0ea40 (patch) | |
tree | 806cd63198f4e91fe512b2b9c3e334f838d33cd8 /Lib | |
parent | 589dc93620656faf80713b50b50d957664cea287 (diff) | |
download | cpython-60e04cd317201f43b612e99444eac297fae0ea40.zip cpython-60e04cd317201f43b612e99444eac297fae0ea40.tar.gz cpython-60e04cd317201f43b612e99444eac297fae0ea40.tar.bz2 |
Fix SF #565414, FancyURLopener() needs to support **kwargs
since the URLopener base class does and **kwargs are used in urlopen.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urllib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 381d54e..4d686b9 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -538,8 +538,8 @@ class URLopener: class FancyURLopener(URLopener): """Derived class with handlers for errors we can handle (perhaps).""" - def __init__(self, *args): - apply(URLopener.__init__, (self,) + args) + def __init__(self, *args, **kwargs): + apply(URLopener.__init__, (self,) + args, kwargs) self.auth_cache = {} self.tries = 0 self.maxtries = 10 |