Commit b11ea173 by soarpenguin

fix classmethod syntax error.

parent 5efa4d29
...@@ -473,13 +473,13 @@ class CLI(object): ...@@ -473,13 +473,13 @@ class CLI(object):
pass pass
@classmethod @classmethod
def tty_ify(self, text): def tty_ify(cls, text):
t = self._ITALIC.sub("`" + r"\1" + "'", text) # I(word) => `word' t = cls._ITALIC.sub("`" + r"\1" + "'", text) # I(word) => `word'
t = self._BOLD.sub("*" + r"\1" + "*", t) # B(word) => *word* t = cls._BOLD.sub("*" + r"\1" + "*", t) # B(word) => *word*
t = self._MODULE.sub("[" + r"\1" + "]", t) # M(word) => [word] t = cls._MODULE.sub("[" + r"\1" + "]", t) # M(word) => [word]
t = self._URL.sub(r"\1", t) # U(word) => word t = cls._URL.sub(r"\1", t) # U(word) => word
t = self._CONST.sub("`" + r"\1" + "'", t) # C(word) => `word' t = cls._CONST.sub("`" + r"\1" + "'", t) # C(word) => `word'
return t return t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment