mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Fix SF #565414, FancyURLopener() needs to support **kwargs
since the URLopener base class does and **kwargs are used in urlopen.
This commit is contained in:
parent
589dc93620
commit
60e04cd317
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue