Пример #1
0
 def _macro_formatter(self, match, fullmatch):
     name = fullmatch.group('macroname')
     if name in self.allowed_macros:
         # leapfrog the OneLinerFormatter
         return Formatter._macro_formatter(self, match, fullmatch)
     else:
         # use the OneLinerFormatter
         return OneLinerFormatter._macro_formatter(self, match, fullmatch)