Revision 11d9e642 ncclient/operations/lock.py

b/ncclient/operations/lock.py
19 19

  
20 20
class Lock(RPC):
21 21
    
22
    def __init__(self, session):
23
        RPC.__init__(self, session)
22
    def __init__(self, *args, **kwds):
23
        RPC.__init__(self, *args, **kwds)
24 24
        self.spec = {
25 25
            'tag': 'lock',
26 26
            'children': { 'tag': 'target', 'children': {'tag': None} }
27 27
            }
28 28
    
29
    def request(self, target='running', reply_event=None):
29
    def request(self, target='running'):
30 30
        self.spec['children']['children']['tag'] = target
31
        self._do_request(self.spec, reply_event)
31
        self._request(self.spec)
32 32

  
33 33

  
34 34
class Unlock(RPC):
35 35
    
36
    def __init__(self, session):
37
        RPC.__init__(self, session)
36
    def __init__(self, *args, **kwds):
37
        RPC.__init__(self, *args, **kwds)
38 38
        self.spec = {
39 39
            'tag': 'unlock',
40 40
            'children': { 'tag': 'target', 'children': {'tag': None} }
41 41
            }
42 42
    
43
    def request(self, target='running', reply_event=None):
43
    def request(self, target='running'):
44 44
        self.spec['children']['children']['tag'] = target
45
        self._do_request(self.spec, reply_event)
45
        self._request(self.spec)

Also available in: Unified diff