def _appendReportKeys(keys, prefix, results):
 allKeys = results.keys()
 allKeys.sort()
 for key in allKeys:
  if hasattr(results[key], 'keys'):
   _appendReportKeys(keys, ('%s%s:' % (prefix, key)), results[key])
  else:
   keys.add(('%s%s' % (prefix, key)))

def _appendReportKeys ( keys , prefix , results ) : allKeys = results . keys ( ) allKeys . sort ( ) for key in allKeys : if hasattr ( results [ key ] , 'keys' ) : _appendReportKeys ( keys , ( '%s%s:' % ( prefix , key ) ) , results [ key ] ) else : keys . add ( ( '%s%s' % ( prefix , key ) ) )
generate a set of possible report keys for an experiments results .