Skip to content

MAINT: Remove duplicate warnings imports#888

Merged
MartinThoma merged 1 commit intomainfrom
maint-warnings
May 22, 2022
Merged

MAINT: Remove duplicate warnings imports#888
MartinThoma merged 1 commit intomainfrom
maint-warnings

Conversation

@MasterOdin
Copy link
Copy Markdown
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.

Comment thread PyPDF2/merger.py
@codecov
Copy link
Copy Markdown

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