From: Neal Norwitz Date: Tue, 11 Jun 2002 13:38:51 +0000 (+0000) Subject: Fix SF #565414, FancyURLopener() needs to support **kwargs X-Git-Tag: v2.3c1~5378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60e04cd317201f43b612e99444eac297fae0ea40;p=thirdparty%2FPython%2Fcpython.git Fix SF #565414, FancyURLopener() needs to support **kwargs since the URLopener base class does and **kwargs are used in urlopen. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 381d54ec9d9b..4d686b911ba1 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