def _parse_tformat(tform):
 try:
  (repeat, format, option) = TFORMAT_RE.match(tform.strip()).groups()
 except Exception:
  raise VerifyError('Format {!r} is not recognized.'.format(tform))
 if (repeat == ''):
  repeat = 1
 else:
  repeat = int(repeat)
 return (repeat, format.upper(), option)

def _parse_tformat ( tform ) : try : ( repeat , format , option ) = TFORMAT_RE . match ( tform . strip ( ) ) . groups ( ) except Exception : raise VerifyError ( 'Format {!r} is not recognized.' . format ( tform ) ) if ( repeat == '' ) : repeat = 1 else : repeat = int ( repeat ) return ( repeat , format . upper ( ) , option )
parse tformn keyword for a binary table into a tuple .