예제 #1
0
파일: checkers.py 프로젝트: vsajip/babel3
 def _parse(string):
     result = []
     for match in PYTHON_FORMAT.finditer(string):
         name, format, typechar = match.groups()
         if typechar == '%' and name is None:
             continue
         result.append((name, str(typechar)))
     return result
예제 #2
0
 def _parse(string):
     result = []
     for match in PYTHON_FORMAT.finditer(string):
         name, format, typechar = match.groups()
         if typechar == '%' and name is None:
             continue
         result.append((name, str(typechar)))
     return result