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 catching OverflowException #1302

Merged
merged 1 commit into from Aug 29, 2022
Merged

Conversation

MartinThoma
Copy link
Member

Since Python 2.2 (PEP 237), integers cannot throw overflow exceptions.

Since Python 2.2 (PEP 237), integers cannot throw overflow exceptions.
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #1302 (b1e6dcf) into main (3b74312) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1302      +/-   ##
==========================================
- Coverage   95.07%   95.02%   -0.05%     
==========================================
  Files          30       30              
  Lines        4973     4986      +13     
  Branches     1023     1025       +2     
==========================================
+ Hits         4728     4738      +10     
- Misses        139      141       +2     
- Partials      106      107       +1     
Impacted Files Coverage Δ
PyPDF2/generic/_base.py 100.00% <100.00%> (+1.02%) ⬆️
PyPDF2/_reader.py 91.21% <0.00%> (-0.48%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MartinThoma MartinThoma merged commit d9ba817 into main Aug 29, 2022
@MartinThoma MartinThoma deleted the remove-overflow-exception branch August 29, 2022 19:19
MartinThoma added a commit that referenced this pull request Sep 4, 2022
Version 2.10.5, 2022-09-04
--------------------------

New Features (ENH):
-  Process XRefStm (#1297)
-  Auto-detect RTL for text extraction (#1309)

Bug Fixes (BUG):
-  Avoid scaling cropbox twice (#1314)

Robustness (ROB):
-  Fix offset correction in revised PDF (#1318)
-  Crop data of /U and /O in encryption dictionary to 48 bytes (#1317)
-  MultiLine bfrange in cmap (#1299)
-  Cope with 2 digit codes in bfchar (#1310)
-  Accept '/annn' charset as ASCII code (#1316)
-  Log errors during Float / NumberObject initialization (#1315)
-  Cope with corrupted entries in xref table (#1300)

Documentation (DOC):
-  Migration guide (PyPDF2 1.x \xe2\x9e\x94 2.x) (#1324)
-  Creating a coverage report (#1319)
-  Fix AnnotationBuilder.free_text example (#1311)
-  Fix usage of page.scale by replacing it with page.scale_by (#1313)

Developer Experience (DEV):
-  Only run coverage for PyPDF2

Maintenance (MAINT):
-  PdfReaderProtocol (#1303)
-  Throw PdfReadError if Trailer can't be read (#1298)
-  Remove catching OverflowException (#1302)

Full Changelog: 2.10.4...2.10.5
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.

None yet

1 participant