~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/decorators.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
    This decorator can be applied to methods of any class with lock_read() and
73
73
    unlock() methods.
74
 
    
 
74
 
75
75
    Typical usage:
76
 
        
 
76
 
77
77
    class Branch(...):
78
78
        @needs_read_lock
79
79
        def branch_method(self, ...):
124
124
 
125
125
    This decorator can be applied to methods of any class with lock_read() and
126
126
    unlock() methods.
127
 
    
 
127
 
128
128
    Typical usage:
129
 
        
 
129
 
130
130
    class Branch(...):
131
131
        @needs_read_lock
132
132
        def branch_method(self, ...):