~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/decorators.py

Merge from mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
            return unbound(self, *args, **kwargs)
39
39
        finally:
40
40
            self.unlock()
 
41
    decorated.__doc__ = unbound.__doc__
 
42
    decorated.__name__ = unbound.__name__
41
43
    return decorated
42
44
 
43
45
 
49
51
            return unbound(self, *args, **kwargs)
50
52
        finally:
51
53
            self.unlock()
 
54
    decorated.__doc__ = unbound.__doc__
 
55
    decorated.__name__ = unbound.__name__
52
56
    return decorated
53
57