Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazily import 'netrc' module. #2910

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Lazily import 'netrc' module. #2910

merged 2 commits into from
Oct 30, 2023

Conversation

tomchristie
Copy link
Member

Motivated similarly to #2909

We only need to import the stdlib netrc module if the NetRCAuth() class is being explicitly used.
Let's avoid unneccessary dependencies where possible.

@tomchristie tomchristie added the refactor Issues and PRs related to code refactoring label Oct 30, 2023
@tomchristie tomchristie merged commit ad06741 into master Oct 30, 2023
5 checks passed
@tomchristie tomchristie deleted the lazily-import-netrc branch October 30, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Issues and PRs related to code refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants