From 19194ac9c1aa48ce5625222d11d4da23dd089d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 18 Sep 2012 18:22:15 +0200 Subject: [PATCH] rename smileys() to inherit() ...as it's generic wrapper to call parent class method there --- text_dokuwiki.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/text_dokuwiki.py b/text_dokuwiki.py index ed58084..196c2d0 100644 --- a/text_dokuwiki.py +++ b/text_dokuwiki.py @@ -281,7 +281,8 @@ class Formatter(FormatterBase): mail = mail.replace(' DOT ', '.') return '[[%s|%s]]' % (mail, args) - def smileys(args): + # function which will just do what parent class would + def inherit(args): return apply(FormatterBase.macro, (self, macro_obj, name, args)) try: @@ -289,7 +290,7 @@ class Formatter(FormatterBase): 'BR' : '\\\\', 'MailTo' : email, 'GetText' : args, - 'ShowSmileys' : smileys, + 'ShowSmileys' : inherit, }[name] except KeyError: lookup = '/* UndefinedMacro: %s(%s) */' % (name, args)