def _get_log_keys(common_config):
 return dict(((k, v) for (k, v) in common_config.items() if (k in LOG_KEYS)))

def _get_log_keys ( common_config ) : return dict ( ( ( k , v ) for ( k , v ) in common_config . items ( ) if ( k in LOG_KEYS ) ) )
return a common configuration copy with only log-related config left .