FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Only import distutils if it is needed by freundTech · Pull Request #10203 · python/mypy · GitHub

Repository navigation

Only import distutils if it is needed - #10203

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
freundTech:fix-deprecated-distutils
Mar 11, 2021
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
freundTech:fix-deprecated-distutils

Conversation

Copy link
Copy Markdown
Contributor

Description

distutils is deprecated in python 3.10, so we only import it if it is
needed, which should only be python < 3.2

Test Plan

All tests still pass. This is a trivial change and shouldn't cause any problems.

distutils is deprecated in python 3.10, so we only import it if it is
needed, which should only be python < 3.2

Copy link
Copy Markdown
Member

Mypy doesn't support Python < 3.2, so maybe this branch can just be removed?

Copy link
Copy Markdown
Member

Never mind, this file has to work in Python 2 because it's used for finding site-packages in Python 2.

JelleZijlstra merged commit 020998d into python:master Mar 11, 2021
freundTech mentioned this pull request Mar 11, 2021
19 of 21 tasks
freundTech deleted the fix-deprecated-distutils branch March 12, 2021 23:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL