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:
parent
07fa53d128
commit
c8a9163f57
@ -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."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user