MAINT: Add stacklevel=2 to deprecation warnings#889
Merged
MartinThoma merged 2 commits intomainfrom May 22, 2022
Merged
Conversation
STY: Adjust code/docs in several places
Codecov Report
@@ Coverage Diff @@
## main #889 +/- ##
==========================================
+ Coverage 77.18% 77.21% +0.03%
==========================================
Files 17 17
Lines 4335 4328 -7
Branches 820 820
==========================================
- Hits 3346 3342 -4
+ Misses 814 811 -3
Partials 175 175
Continue to review full report at Codecov.
|
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
MartinThoma
pushed a commit
that referenced
this pull request
May 23, 2022
Fixes a deprecation warning being raised when trying to use the PdfMerger class. This regression of #887 is caused by #889 which reversed the changes done to the PyPDF2/merger.py module so that it once again used the deprecated user-facing isString method as opposed to the internal _isString method. Additionally, this PR fixes the deprecation warning raised by referencing reader.namedDestinations as opposed to reader.named_destinations. Closes #890
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
STY: Adjust code/docs in several places