Skip to content

Commit

Permalink
Cosmit in API reference
Browse files Browse the repository at this point in the history
  • Loading branch information
superbobry committed Mar 4, 2016
1 parent 5cd9ce4 commit 4cea73e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions docs/api.rst
Expand Up @@ -38,9 +38,6 @@ Internals
.. autoclass:: pyxs.client.Router
:members:

.. autoclass:: pyxs.connection.PacketConnection
:members:

.. autoclass:: pyxs.connection.XenBusConnection

.. autoclass:: pyxs.connection.UnixSocketConnection
Expand Down
12 changes: 5 additions & 7 deletions pyxs/client.py
Expand Up @@ -130,7 +130,7 @@ def is_connected(self):
return self.connection.is_connected

def subscribe(self, token, monitor):
"""Subscribes a ``monitor`` to events with a given ``token``."""
"""Subscribes a ``monitor`` from events with a given ``token``."""
self.monitors[token].append(monitor)

def unsubscribe(self, token, monitor):
Expand Down Expand Up @@ -314,18 +314,16 @@ def connect(self):
.. versionadded: 0.4.0
.. warning:: This method is unsafe. Please use :class:`Client`
as a context manager to make sure the client is
properly finalized.
.. warning:: This method is unsafe. Please use client as a context
manager to ensure it is properly finalized.
"""
self.router.start()

def close(self):
"""Finalizes the client.
.. warning:: This method is unsafe. Please use :class:`Client`
as a context manager to make sure the client is
properly finalized.
.. warning:: This method is unsafe. Please use client as a context
manager to ensure it is properly finalized.
"""
self.router.terminate()

Expand Down

0 comments on commit 4cea73e

Please sign in to comment.