def is_posixpath(location):
    '\n    Return True if the `location` path is likely a POSIX-like path using POSIX path\n    separators (slash or "/")or has no path separator.\n\n    Return False if the `location` path is likely a Windows-like path using backslash\n    as path separators (e.g. "").\n    '
    has_slashes = ('/' in location)
    has_backslashes = ('\\' in location)
    if location:
        (drive, _) = ntpath.splitdrive(location)
        if drive:
            return False
    is_posix = True
    if (has_backslashes and (not has_slashes)):
        is_posix = False
    return is_posix
Return True if the `location` path is likely a POSIX-like path using POSIX path
separators (slash or "/")or has no path separator.

Return False if the `location` path is likely a Windows-like path using backslash
as path separators (e.g. "").
def is_posixpath(location):
    '\n    Return True if the `location` path is likely a POSIX-like path using POSIX path\n    separators (slash or "/")or has no path separator.\n\n    Return False if the `location` path is likely a Windows-like path using backslash\n    as path separators (e.g. ).\n    '
    has_slashes = ('/' in location)
    has_backslashes = ('\\' in location)
    if location:
        (drive, _) = ntpath.splitdrive(location)
        if drive:
            return False
    is_posix = True
    if (has_backslashes and (not has_slashes)):
        is_posix = False
    return is_posix