def parse_submodules(config):
 for section in config.keys():
  (section_kind, section_name) = section
  if (section_kind == 'submodule'):
   sm_path = config.get(section, 'path')
   sm_url = config.get(section, 'url')
   (yield (sm_path, sm_url, section_name))

def parse_submodules ( config ) : for section in config . keys ( ) : ( section_kind , section_name ) = section if ( section_kind == 'submodule' ) : sm_path = config . get ( section , 'path' ) sm_url = config . get ( section , 'url' ) ( yield ( sm_path , sm_url , section_name ) )
parse a gitmodules gitconfig file .