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

MAINT: Remove duplicate warnings imports #888

Merged
merged 1 commit into from
May 22, 2022
Merged

Conversation

MasterOdin
Copy link
Member

This PR removes a handful of places where warnings module was being double imported (once at the top-level and once within a method), leaving in place just the top-level import.

@codecov
Copy link

codecov bot commented May 22, 2022

Codecov Report

Merging #888 (00f5619) into main (a214c9e) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #888      +/-   ##
==========================================
+ Coverage   77.19%   77.25%   +0.05%     
==========================================
  Files          17       17              
  Lines        4328     4326       -2     
  Branches      819      819              
==========================================
+ Hits         3341     3342       +1     
+ Misses        812      809       -3     
  Partials      175      175              
Impacted Files Coverage Δ
PyPDF2/_reader.py 76.69% <ø> (+0.08%) ⬆️
PyPDF2/_writer.py 79.93% <ø> (+0.12%) ⬆️
PyPDF2/merger.py 64.32% <100.00%> (+0.30%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a214c9e...00f5619. Read the comment docs.

@MartinThoma MartinThoma merged commit 560d2a7 into main May 22, 2022
@MartinThoma MartinThoma deleted the maint-warnings branch May 22, 2022 19:05
MartinThoma added a commit that referenced this pull request May 22, 2022
Bug Fixes (BUG):
-  Incorrectly show deprecation warnings on internal usage (#887)

Maintenance (MAINT):
-  Add stacklevel=2 to deprecation warnings (#889)
-  Remove duplicate warnings imports (#888)

Full Changelog: 1.28.0...1.28.1
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