Revision bbd4ce54 ncclient/operations/rpc.py

b/ncclient/operations/rpc.py
239 239
    taking delivery of the reply.
240 240
    """
241 241

  
242
    # : Subclasses can specify their dependencies on capabilities. List of URI's
242
    #: Subclasses can specify their dependencies on capabilities. List of URI's
243 243
    # or abbreviated names, e.g. ':writable-running'. These are verified at the
244 244
    # time of object creation. If the capability is not available, a
245 245
    # :exc:`MissingCapabilityError` is raised.
246 246
    DEPENDS = []
247 247

  
248
    # : Subclasses can specify a different reply class, but it must be a
248
    #: Subclasses can specify a different reply class, but it must be a
249 249
    # subclass of :class:`RPCReply`.
250 250
    REPLY_CLS = RPCReply
251 251

  
......
328 328
        :exc:`MissingCapabilityError` will be raised if the capability is not
329 329
        available."""
330 330
        if capability not in self._session.server_capabilities:
331
            raise MissingCapabilityError('Server does not support [%s]' % cap)
331
            raise MissingCapabilityError('Server does not support [%s]' %
332
                                         capability)
332 333

  
333 334
    def deliver_reply(self, raw):
334 335
        # internal use

Also available in: Unified diff