Skip to content

Enforce ruff/flake8-2020 rule (YTT301)#264

Merged
jaraco merged 1 commit intopypa:mainfrom
DimitriPapadopoulos:YTT
Aug 27, 2024
Merged

Enforce ruff/flake8-2020 rule (YTT301)#264
jaraco merged 1 commit intopypa:mainfrom
DimitriPapadopoulos:YTT

Conversation

@DimitriPapadopoulos
Copy link
Contributor

YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`

The Python documentation discourages the use of sys.version:

Do not extract version information out of it, rather, use version_info and the functions provided by the platform module.

YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`

The Python documentation discourages the use of `sys.version`:
	Do not extract version information out of it, rather,
	use `version_info` and [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants