mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Remove redundant f-strings
This commit is contained in:
parent
968fd20ac7
commit
2085405d05
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ class DangerzoneConverter:
|
||||||
|
|
||||||
# Validate MIME type
|
# Validate MIME type
|
||||||
if mime_type not in conversions:
|
if mime_type not in conversions:
|
||||||
raise ValueError(f"The document format is not supported")
|
raise ValueError("The document format is not supported")
|
||||||
|
|
||||||
# Convert input document to PDF
|
# Convert input document to PDF
|
||||||
conversion = conversions[mime_type]
|
conversion = conversions[mime_type]
|
||||||
|
@ -338,7 +338,7 @@ class DangerzoneConverter:
|
||||||
self.percentage += 2
|
self.percentage += 2
|
||||||
|
|
||||||
# Compress
|
# Compress
|
||||||
self.update_progress(f"Compressing PDF")
|
self.update_progress("Compressing PDF")
|
||||||
compress_timeout = num_pages * 3
|
compress_timeout = num_pages * 3
|
||||||
run_command(
|
run_command(
|
||||||
["ps2pdf", "/tmp/safe-output.pdf", "/tmp/safe-output-compressed.pdf"],
|
["ps2pdf", "/tmp/safe-output.pdf", "/tmp/safe-output-compressed.pdf"],
|
||||||
|
|
Loading…
Reference in a new issue