Revision 0b7d3b31 ncclient/manager.py

b/ncclient/manager.py
15 15
"Thin layer of abstraction around NCClient"
16 16

  
17 17
import capabilities
18
from operations import OPERATIONS
18
import operations
19 19
import transport
20 20

  
21 21
def connect_ssh(*args, **kwds):
......
55 55
        """
56 56
        self._raise = action
57 57

  
58
    def __enter__(self):
59
        return self
60

  
61
    def __exit__(self, *args):
62
        self.close()
63
        return False
58
    #def __enter__(self):
59
    #    return self
60
    #
61
    #def __exit__(self, *args):
62
    #    self.close()
63
    #    return False
64 64

  
65 65
    def do(self, op, *args, **kwds):
66
        op = OPERATIONS[op](self._session)
66
        op = operations.OPERATIONS[op](self._session)
67 67
        reply = op.request(*args, **kwds)
68 68
        if not reply.ok:
69 69
            if self._raise == RAISE_ALL:
......
115 115

  
116 116
        :arg target: name of the datastore to lock
117 117
        :type target: `string`
118
        :rtype: :class:`operations.LockContext`
118
        :rtype: :class:`~ncclient.operations.LockContext`
119 119
        """
120 120
        return operations.LockContext(self._session, target)
121 121

  

Also available in: Unified diff