From bab69bb31e5f896efc4ed7a27d56bf6741982f5d Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jan 2013 19:24:05 +0100 Subject: [PATCH 1/3] Remove useless non-ascii character. --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index a8366ead6..451ac7cff 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -292,7 +292,7 @@ class Tokenizer(object): def _handleToken(self, token): if token[0] == token[-1] and token[0] in self.quotes: token = token[1:-1] - # FIXME: No need to tell you this is a hack. + # FIXME: No need to tell you this is a hack. # It has to handle both IRC commands and serialized configuration. # # Whoever you are, if you make a single modification to this From 9507bf165528dcc3c517ead3eb90b9aa62f5b431 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jan 2013 20:47:57 +0100 Subject: [PATCH 2/3] Remove non-ascii char (again). --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 451ac7cff..81700bced 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -293,7 +293,7 @@ class Tokenizer(object): if token[0] == token[-1] and token[0] in self.quotes: token = token[1:-1] # FIXME: No need to tell you this is a hack. - # It has to handle both IRC commands and serialized configuration. + # It has to handle both IRC commands and serialized configuration. # # Whoever you are, if you make a single modification to this # code, TEST the code with Python 2 & 3, both with the unit From b589c2dc2b395c3cc9c0bec002b68a550ae8cfcf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jan 2013 20:48:16 +0100 Subject: [PATCH 3/3] core: Document IrcMsg tags. --- src/ircmsgs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 09759d950..1d355501c 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -196,9 +196,11 @@ class IrcMsg(object): return (self.__class__, (str(self),)) def tag(self, tag, value=True): + """Affect a key:value pair to this message.""" self.tags[tag] = value def tagged(self, tag): + """Get the value affected to a tag.""" return self.tags.get(tag) # Returns None if it's not there. def __getattr__(self, attr):