Skip to content

Commit

Permalink
[skip ci]: black/isort
Browse files Browse the repository at this point in the history
  • Loading branch information
black-isort-bot committed Sep 28, 2023
1 parent 5a097b9 commit 3bc5fbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion PyPDFForm/middleware/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
GLOBAL_FONT_COLOR = (0, 0, 0)

VERSION_IDENTIFIERS = [
b"%PDF-1.0", b"%PDF-1.1", b"%PDF-1.2", b"%PDF-1.3", b"%PDF-1.4", b"%PDF-1.5", b"%PDF-1.6", b"%PDF-1.7", b"%PDF-2.0",
b"%PDF-1.0",
b"%PDF-1.1",
b"%PDF-1.2",
b"%PDF-1.3",
b"%PDF-1.4",
b"%PDF-1.5",
b"%PDF-1.6",
b"%PDF-1.7",
b"%PDF-2.0",
]
VERSION_IDENTIFIER_PREFIX = b"%PDF-"

Expand Down
2 changes: 1 addition & 1 deletion PyPDFForm/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def change_version(self, version: str) -> Wrapper:
self.stream = self.stream.replace(
constants.VERSION_IDENTIFIER_PREFIX + bytes(self.version, "utf-8"),
constants.VERSION_IDENTIFIER_PREFIX + bytes(version, "utf-8"),
1
1,
)

return self
Expand Down

0 comments on commit 3bc5fbf

Please sign in to comment.