Skip to content
Snippets Groups Projects
Commit 7252c305 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Don't leak the (likely-temporary) pathname when comparing PDF documents.

parent 86adc3f9
No related branches found
No related tags found
No related merge requests found
Pipeline #391153 failed
...@@ -67,8 +67,8 @@ class PdfFile(File): ...@@ -67,8 +67,8 @@ class PdfFile(File):
difference = Difference.from_text( difference = Difference.from_text(
self.dump_pypdf2_metadata(self), self.dump_pypdf2_metadata(self),
self.dump_pypdf2_metadata(other), self.dump_pypdf2_metadata(other),
self.path, self.name,
other.path, other.name,
) )
if difference: if difference:
difference.add_comment("Document info") difference.add_comment("Document info")
...@@ -77,8 +77,8 @@ class PdfFile(File): ...@@ -77,8 +77,8 @@ class PdfFile(File):
difference = Difference.from_text( difference = Difference.from_text(
self.dump_pypdf2_annotations(self), self.dump_pypdf2_annotations(self),
self.dump_pypdf2_annotations(other), self.dump_pypdf2_annotations(other),
self.path, self.name,
other.path, other.name,
) )
if difference: if difference:
difference.add_comment("Annotations") difference.add_comment("Annotations")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment