def normalize_drive(path):
    'Normalize drive in path so they stay consistent.\n\n    This currently only affects local drives on Windows, which can be\n    identified with either upper or lower cased drive names. The case is\n    always converted to uppercase because it seems to be preferred.\n\n    See: <https://github.com/pypa/pipenv/issues/1218>\n    '
    if ((os.name != 'nt') or (not isinstance(path, six.string_types))):
        return path
    (drive, tail) = os.path.splitdrive(path)
    if (drive.islower() and (len(drive) == 2) and (drive[1] == ':')):
        return '{}{}'.format(drive.upper(), tail)
    return path
Normalize drive in path so they stay consistent.

This currently only affects local drives on Windows, which can be
identified with either upper or lower cased drive names. The case is
always converted to uppercase because it seems to be preferred.

See: <https://github.com/pypa/pipenv/issues/1218>
def normalize_drive(path):
    'Normalize drive in path so they stay consistent.\n\n    This currently only affects local drives on Windows, which can be\n    identified with either upper or lower cased drive names. The case is\n    always converted to uppercase because it seems to be preferred.\n\n    See: <https://github.com/pypa/pipenv/issues/1218>\n    '
    if ((os.name != 'nt') or (not isinstance(path, six.string_types))):
        return path
    (drive, tail) = os.path.splitdrive(path)
    if (drive.islower() and (len(drive) == 2) and (drive[1] == ':')):
        return '{}{}'.format(drive.upper(), tail)
    return path