def setlocale(category, locale=None):
 if (locale and (not isinstance(locale, _builtin_str))):
  locale = normalize(_build_localename(locale))
 return _setlocale(category, locale)

def setlocale ( category , locale = None ) : if ( locale and ( not isinstance ( locale , _builtin_str ) ) ) : locale = normalize ( _build_localename ( locale ) ) return _setlocale ( category , locale )
set the locale for the given category .