Example #1
0
 def __str__(self):
     return makePrintable(str(self.regex), 'ASCII', to_unicode=True)
Example #2
0
 def __str__(self):
     return makePrintable(self.text, 'ASCII', to_unicode=True)
Example #3
0
 def __repr__(self, **kw):
     regex = self.__str__(**kw)
     regex = makePrintable(regex, 'ASCII', to_unicode=True)
     return "<%s '%s'>" % (
         self.__class__.__name__, regex)
Example #4
0
 def __str__(self):
     return makePrintable(str(self.regex), 'ASCII', to_unicode=True)
Example #5
0
 def __str__(self):
     return makePrintable(self.text, 'ASCII', to_unicode=True)
Example #6
0
 def __repr__(self, **kw):
     regex = self.__str__(**kw)
     regex = makePrintable(regex, 'ASCII', to_unicode=True)
     return "<%s '%s'>" % (self.__class__.__name__, regex)