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