(s)
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."""
    s = os.fspath(s)
    if isinstance(s, bytes):
        return s.replace(b'/', b'\\').lower()
    else:
        return s.replace('/', '\\').lower()
def normcase ( s ) : s = os . fspath ( s ) if isinstance ( s , bytes ) : return s . replace ( b'/' , b'\\' ) . lower ( ) else : return s . replace ( '/' , '\\' ) . lower ( )