From b11ea1738557638f845032855850b71461168e04 Mon Sep 17 00:00:00 2001 From: soarpenguin Date: Fri, 9 Oct 2015 12:46:31 +0800 Subject: [PATCH] fix classmethod syntax error. --- lib/ansible/cli/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ansible/cli/__init__.py b/lib/ansible/cli/__init__.py index bf5e33e6be8..cffdccb3a9c 100644 --- a/lib/ansible/cli/__init__.py +++ b/lib/ansible/cli/__init__.py @@ -473,13 +473,13 @@ class CLI(object): pass @classmethod - def tty_ify(self, text): + def tty_ify(cls, text): - t = self._ITALIC.sub("`" + r"\1" + "'", text) # I(word) => `word' - t = self._BOLD.sub("*" + r"\1" + "*", t) # B(word) => *word* - t = self._MODULE.sub("[" + r"\1" + "]", t) # M(word) => [word] - t = self._URL.sub(r"\1", t) # U(word) => word - t = self._CONST.sub("`" + r"\1" + "'", t) # C(word) => `word' + t = cls._ITALIC.sub("`" + r"\1" + "'", text) # I(word) => `word' + t = cls._BOLD.sub("*" + r"\1" + "*", t) # B(word) => *word* + t = cls._MODULE.sub("[" + r"\1" + "]", t) # M(word) => [word] + t = cls._URL.sub(r"\1", t) # U(word) => word + t = cls._CONST.sub("`" + r"\1" + "'", t) # C(word) => `word' return t