3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-27 05:03:07 +01:00

ChannelState: add __repr__

This commit is contained in:
James Lu 2017-08-06 18:09:37 -07:00
parent 07fa53d128
commit c8a9163f57

View File

@ -76,6 +76,9 @@ class ChannelState(collections.abc.MutableMapping):
def __contains__(self, key): def __contains__(self, key):
return self._data.__contains__(self._keymangle(key)) return self._data.__contains__(self._keymangle(key))
def __repr__(self):
return "ChannelState(%s)" % self._data.keys()
class PyLinkNetworkCore(utils.DeprecatedAttributesObject, utils.CamelCaseToSnakeCase): class PyLinkNetworkCore(utils.DeprecatedAttributesObject, utils.CamelCaseToSnakeCase):
"""Base IRC object for PyLink.""" """Base IRC object for PyLink."""