Skip to content

Commit 3f72a7b

Browse files
committed
v2.7.3
1 parent 71b1cfb commit 3f72a7b

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ repos:
2121
- id: black
2222
- repo: local
2323
hooks:
24+
- id: no-print-in-sources
25+
name: Ensure no print() statement appears in fpdf2 sources
26+
language: pygrep
27+
entry: print\(
28+
files: ^fpdf/.*\.py$
29+
exclude: fpdf/util.py
2430
- id: no-generate-true
2531
name: Ensure no generate=True is left in a call to assert_pdf_equal()
2632
language: pygrep

CHANGELOG.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ in order to get warned about deprecated features used in your code.
1616

1717
This can also be enabled programmatically with `warnings.simplefilter('default', DeprecationWarning)`.
1818

19-
## [2.7.3] - Not released yet
19+
## [2.7.4] - Not released yet
20+
21+
## [2.7.3] - 2023-04-03
22+
- removed a debug `print()` statement left in `output.py:OutputProducer._add_fonts()` 🤦‍♂️ - A rule was also added to `.pre-commit-config.yaml` to avoid this to happen again.
2023

2124
## [2.7.2] - 2023-04-03
2225
### Fixed

fpdf/fpdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Image:
9292
)
9393

9494
# Public global variables:
95-
FPDF_VERSION = "2.7.2"
95+
FPDF_VERSION = "2.7.3"
9696
PAGE_FORMATS = {
9797
"a3": (841.89, 1190.55),
9898
"a4": (595.28, 841.89),

fpdf/output.py

-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ def _add_fonts(self):
580580
glyph_names = [
581581
cmap[unicode] for unicode in uni_to_new_code_char if unicode in cmap
582582
]
583-
print(glyph_names)
584583

585584
missing_glyphs = [
586585
chr(unicode)

0 commit comments

Comments
 (0)