def _parse_circ_path(path):
 if path:
  try:
   return [_parse_circ_entry(entry) for entry in path.split(',')]
  except stem.ProtocolError as exc:
   raise stem.ProtocolError(('%s: %s' % (exc, path)))
 else:
  return []

def _parse_circ_path ( path ) : if path : try : return [ _parse_circ_entry ( entry ) for entry in path . split ( ',' ) ] except stem . ProtocolError as exc : raise stem . ProtocolError ( ( '%s: %s' % ( exc , path ) ) ) else : return [ ]
parses a circuit path as a list of **** tuples .