diff options
| author | 2019-06-01 22:28:37 +0100 | |
|---|---|---|
| committer | 2019-06-01 22:28:37 +0100 | |
| commit | b84d133500e88aa867647f3866515daf2e545de0 (patch) | |
| tree | dab0fb75ff38b49d5981fdfb74b6eb7464c9ba97 /src/IRCLine.py | |
| parent | Update CHANGELOG (diff) | |
| signature | ||
add __str__ and __repr__ defs to IRCLine.ParsedLine
Diffstat (limited to 'src/IRCLine.py')
| -rw-r--r-- | src/IRCLine.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py index 538c0a5e..9a545479 100644 --- a/src/IRCLine.py +++ b/src/IRCLine.py @@ -47,6 +47,11 @@ class ParsedLine(object): self.prefix = prefix self.tags = {} if tags == None else tags + def __repr__(self): + return "ParsedLine(%s)" % self.__str__() + def __str__(self): + return self.format() + def _tag_str(self, tags: typing.Dict[str, str]) -> str: tag_pieces = [] for tag, value in tags.items(): |
