def get_statistics(prefix=''):
 stats = []
 keys = options.messages.keys()
 keys.sort()
 for key in keys:
  if key.startswith(prefix):
   stats.append(('%-7s %s %s' % (options.counters[key], key, options.messages[key])))
 return stats

def get_statistics ( prefix = '' ) : stats = [ ] keys = options . messages . keys ( ) keys . sort ( ) for key in keys : if key . startswith ( prefix ) : stats . append ( ( '%-7s %s %s' % ( options . counters [ key ] , key , options . messages [ key ] ) ) ) return stats
get statistics for message codes that start with the prefix .