python3: 'object' builtin class constructor takes no parameter (#31147)
This commit is contained in:
parent
01d49edb56
commit
b623aaf509
|
@ -109,7 +109,7 @@ class CacheDecoratorBase(object):
|
|||
if args:
|
||||
# Case of a decorator used directly
|
||||
return cls(**kwargs)(args[0])
|
||||
return super(CacheDecoratorBase, cls).__new__(cls, *args, **kwargs)
|
||||
return super(CacheDecoratorBase, cls).__new__(cls)
|
||||
|
||||
def __init__(self, timeout=None, hostname_vary=True, args=None,
|
||||
kwargs=None):
|
||||
|
|
Loading…
Reference in New Issue