Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

False positive with version slice #3

Closed
@asottile

Description

@asottile

the version slice should probably only check for :1 and :3 as there's a few "legitimate" usages of slicing sys.version I've seen in the wild, in particular here's one from cpython that seems to be well defined:

https://github.com/python/cpython/blob/da27d9b9dc44913ffee8f28d9638985eaaa03755/Lib/distutils/msvc9compiler.py#L174-L179

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions