def _get_unit_format(config):
 if (config.get(u'unit_format') is None):
  format = _get_default_unit_format(config)
 else:
  format = config[u'unit_format']
 return format

def _get_unit_format ( config ) : if ( config . get ( u'unit_format' ) is None ) : format = _get_default_unit_format ( config ) else : format = config [ u'unit_format' ] return format
get the unit format based on the configuration .