def get_locale(name):
 locale_cls = _locales.get(name.lower())
 if (locale_cls is None):
  raise ValueError(u"Unsupported locale '{0}'".format(name))
 return locale_cls()

def get_locale ( name ) : locale_cls = _locales . get ( name . lower ( ) ) if ( locale_cls is None ) : raise ValueError ( u"Unsupported locale '{0}'" . format ( name ) ) return locale_cls ( )
returns an appropriate :class:locale <arrow .