def _gather_update_categories(updateCollection):
 categories = []
 for i in range(updateCollection.Count):
  update = updateCollection.Item(i)
  for j in range(update.Categories.Count):
   name = update.Categories.Item(j).Name
   if (name not in categories):
    log.debug('found category: {0}'.format(name))
    categories.append(name)
 return categories

def _gather_update_categories ( updateCollection ) : categories = [ ] for i in range ( updateCollection . Count ) : update = updateCollection . Item ( i ) for j in range ( update . Categories . Count ) : name = update . Categories . Item ( j ) . Name if ( name not in categories ) : log . debug ( 'found category: {0}' . format ( name ) ) categories . append ( name ) return categories
this is a convenience method to gather what categories of updates are available in any update collection it is passed .