def _deduplicate_loggers(loggers):
 return ('{}:{}'.format(logger, level) for (logger, level) in dict((it.split(':') for it in loggers)).iteritems())

def _deduplicate_loggers ( loggers ) : return ( '{}:{}' . format ( logger , level ) for ( logger , level ) in dict ( ( it . split ( ':' ) for it in loggers ) ) . iteritems ( ) )
avoid saving multiple logging levels for the same loggers to a save file .