parameter to much in caps_cache.py NullClientCaps.__new__
Bug description
in caps_cache.py NullClientCaps.new the parameter **kwargs to call the superclass is to much.
Maybe the **kwargs in NullClientCaps should also be removed.
Steps to reproduce
Software versions
OS version: Windows 7
GTK version: 2.24.10
PyGTK version: 2.24.0
Patch
Remove **kwargs from call
old:
def __new__(cls, *args, **kwargs):
"""
Make it a singleton.
"""
if not cls._instance:
# FixMe: Is the kwargs to much?
cls._instance = super(NullClientCaps, cls).__new__(cls, *args, **kwargs)
return cls._instance
new:
def __new__(cls, *args, **kwargs):
"""
Make it a singleton.
"""
if not cls._instance:
# FixMe: Is the kwargs to much?
cls._instance = super(NullClientCaps, cls).__new__(cls, *args)
return cls._instance