(s)
return s.replace(_get_altsep(s), _get_sep(s)).lower()
Normalize case of pathname.

    Makes all characters lowercase and all slashes into backslashes.
Normalize case of pathname.
Normalize case of pathname .
def normcase(s):
    """Normalize case of pathname.

    Makes all characters lowercase and all slashes into backslashes."""
    if not isinstance(s, (bytes, str)):
        raise TypeError("normcase() argument must be str or bytes, "
                        "not '{}'".format(s.__class__.__name__))
    return s.replace(_get_altsep(s), _get_sep(s)).lower()
def normcase ( s ) : if not isinstance ( s , ( bytes , str ) ) : raise TypeError ( "normcase() argument must be str or bytes, " "not '{}'" . format ( s . __class__ . __name__ ) ) return s . replace ( _get_altsep ( s ) , _get_sep ( s ) ) . lower ( )