parameters: (s)
docstring: Normalize case of pathname.
  
      Makes all characters lowercase and all slashes into backslashes.
docstring_summary: Normalize case of pathname.
docstring_tokens: Normalize case of pathname .
function: def normcase(s):
      """Normalize case of pathname.
  
      Makes all characters lowercase and all slashes into backslashes."""
      s = os.fspath(s)
      try:
          if isinstance(s, bytes):
              return s.replace(b'/', b'\\').lower()
          else:
              return s.replace('/', '\\').lower()
      except (TypeError, AttributeError):
          if not isinstance(s, (bytes, str)):
              raise TypeError("normcase() argument must be str or bytes, "
                              "not %r" % s.__class__.__name__) from None
          raise
function_tokens: def normcase ( s ) : s = os . fspath ( s ) try : if isinstance ( s , bytes ) : return s . replace ( b'/' , b'\\' ) . lower ( ) else : return s . replace ( '/' , '\\' ) . lower ( ) except ( TypeError , AttributeError ) : if not isinstance ( s , ( bytes , str ) ) : raise TypeError ( "normcase() argument must be str or bytes, " "not %r" % s . __class__ . __name__ ) from None raise