Source code for mpris2.decorator.base
'''
This is not part of specification
Helper class to make it work as python lib
'''
I_PROP = 'org.freedesktop.DBus.Properties'
ARG_KEY = 'dbus_interface_info'
ATTR_KEY = '_dbus_interface_info'
[docs]class Decorator(object):
def _update_me(self, target=None):
if hasattr(target, "__doc__"):
self.__doc__ = target.__doc__
if hasattr(target, "__name__"):
self.__name__ = target.__name__
if hasattr(target, "__bases__"):
self.__bases__ = target.__bases__