예제 #1
0
파일: pattern.py 프로젝트: Woerd88/hachoir
 def __str__(self):
     return makePrintable(str(self.regex), 'ASCII', to_unicode=True)
예제 #2
0
파일: pattern.py 프로젝트: Woerd88/hachoir
 def __str__(self):
     return makePrintable(self.text, 'ASCII', to_unicode=True)
예제 #3
0
파일: regex.py 프로젝트: Woerd88/hachoir
 def __repr__(self, **kw):
     regex = self.__str__(**kw)
     regex = makePrintable(regex, 'ASCII', to_unicode=True)
     return "<%s '%s'>" % (
         self.__class__.__name__, regex)
예제 #4
0
 def __str__(self):
     return makePrintable(str(self.regex), 'ASCII', to_unicode=True)
예제 #5
0
 def __str__(self):
     return makePrintable(self.text, 'ASCII', to_unicode=True)
예제 #6
0
 def __repr__(self, **kw):
     regex = self.__str__(**kw)
     regex = makePrintable(regex, 'ASCII', to_unicode=True)
     return "<%s '%s'>" % (self.__class__.__name__, regex)