def __str__(self): return makePrintable(str(self.regex), 'ASCII', to_unicode=True)
def __str__(self): return makePrintable(self.text, 'ASCII', to_unicode=True)
def __repr__(self, **kw): regex = self.__str__(**kw) regex = makePrintable(regex, 'ASCII', to_unicode=True) return "<%s '%s'>" % ( self.__class__.__name__, regex)
def __repr__(self, **kw): regex = self.__str__(**kw) regex = makePrintable(regex, 'ASCII', to_unicode=True) return "<%s '%s'>" % (self.__class__.__name__, regex)