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

DEP: Deprecate PdfMerger #1866

Merged
merged 1 commit into from
Jun 4, 2023
Merged

Conversation

pubpub-zz
Copy link
Collaborator

closes #1824

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.11 🎉

Comparison is base (0096c99) 93.42% compared to head (2306854) 93.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1866      +/-   ##
==========================================
+ Coverage   93.42%   93.53%   +0.11%     
==========================================
  Files          34       34              
  Lines        6632     6623       -9     
  Branches     1302     1295       -7     
==========================================
- Hits         6196     6195       -1     
+ Misses        284      281       -3     
+ Partials      152      147       -5     
Impacted Files Coverage Δ
pypdf/_merger.py 100.00% <100.00%> (+2.39%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pubpub-zz
Copy link
Collaborator Author

@MartinThoma
ready for review

@@ -522,13 +514,13 @@ def _write_dests(self) -> None:
raise RuntimeError(ERR_CLOSED_WRITER)
for named_dest in self.named_dests:
page_index = None
if "/Page" in named_dest:
if "/Page" in named_dest: # deprecated
Copy link
Member

Choose a reason for hiding this comment

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

Why did you add those comments?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've checked in coverage which lines where not covered, with the objective to get 100% for this file

@MartinThoma MartinThoma marked this pull request as ready for review June 3, 2023 06:42
@MartinThoma
Copy link
Member

Very nice! I marked it as "ready for review". Seems good to go to me. I'm just curious about the # deprecated comments :-) I guess that was to not lower the test coverage?

@pubpub-zz
Copy link
Collaborator Author

when deprecated, _merger.py should dissapear or at least will be strongly reduced

@MartinThoma MartinThoma merged commit 6fef1c6 into py-pdf:main Jun 4, 2023
MartinThoma added a commit that referenced this pull request Jun 4, 2023
Deprecations (DEP)
-  Deprecate PdfMerger (#1866)

Bug Fixes (BUG)
-  Ignore UTF-8 decode errors (#1865)

Robustness (ROB)
-  Handle missing /Type entry in Page tree (#1859)

[Full Changelog](3.9.0...3.9.1)
@pubpub-zz pubpub-zz deleted the Deprecate_PdfMerger branch September 2, 2023 09:50
@MasterOdin MasterOdin mentioned this pull request Sep 16, 2024
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.

Deprecate PdfMerger
2 participants