Skip to content

Commit

Permalink
STY: Variable naming convention (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Dec 23, 2023
1 parent 5a9a420 commit 85b5768
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypdf/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,11 +1236,11 @@ def generate_file_identifiers(self) -> None:
required; see 14.4 "File Identifiers".
"""
if hasattr(self, "_ID") and self._ID and len(self._ID) == 2:
ID_1 = self._ID[0]
id1 = self._ID[0]
else:
ID_1 = self._compute_document_identifier_from_content()
ID_2 = self._compute_document_identifier_from_content()
self._ID = ArrayObject((ID_1, ID_2))
id1 = self._compute_document_identifier_from_content()
id2 = self._compute_document_identifier_from_content()
self._ID = ArrayObject((id1, id2))

def encrypt(
self,
Expand Down

0 comments on commit 85b5768

Please sign in to comment.