Skip to content

chore: Remove unused import from distutils#1031

Merged
JenniferMah merged 2 commits intosendgrid:mainfrom
tirkarthi:fix-distutils
Jan 7, 2022
Merged

chore: Remove unused import from distutils#1031
JenniferMah merged 2 commits intosendgrid:mainfrom
tirkarthi:fix-distutils

Conversation

@tirkarthi
Copy link
Copy Markdown
Contributor

The import is unused and distutils is scheduled for removal in Python 3.12. So this can be safely removed.

python3.10             
Python 3.10.0b1 (default, May  6 2021, 02:44:57) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.file_util import copy_file
<stdin>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives

Checklist

  • I acknowledge that all my contributions will be made under the project's license
  • I have made a material change to the repo (functionality, testing, spelling, grammar)
  • I have read the Contribution Guidelines and my PR follows them
  • I have titled the PR appropriately
  • I have updated my branch with the main branch
  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary documentation about the functionality in the appropriate .md file
  • I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

Copy link
Copy Markdown
Contributor

@JenniferMah JenniferMah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tirkarthi! Thanks for the contribution!

@JenniferMah JenniferMah changed the title chore: Remove unused import from distutils since distutils was deprecated in python3.10 chore: Remove unused import from distutils Jan 7, 2022
@JenniferMah JenniferMah merged commit df13b78 into sendgrid:main Jan 7, 2022
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