def __init__(self, wrapped): if isinstance(wrapped, tuple): (instance, wrapped) = wrapped else: instance = None update_wrapper(self, wrapped) self._bw_instance = instance self._bw_next_object = wrapped if not hasattr(self, '_bw_last_object'): self._bw_last_object = wrapped
def __init__(self, wrapped): update_wrapper(self, wrapped) self._bw_next_object = wrapped if not hasattr(self, '_bw_last_object'): self._bw_last_object = wrapped