def setlocale(category, locale=None):
if locale and not isinstance(locale, (_str, _unicode)):<EOL><INDENT>locale = normalize(_build_localename(locale))<EOL><DEDENT>return _setlocale(category, locale)<EOL>
Set the locale for the given category.  The locale can be
        a string, an iterable of two strings (language code and encoding),
        or None.

        Iterables are converted to strings using the locale aliasing
        engine.  Locale strings are passed directly to the C lib.

        category may be given as one of the LC_* values.