Exemplo n.º 1
0
    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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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