mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
Rename ConversionJob back to DangerzoneConverter
Co-authored-by: deeplow <47065258+deeplow@users.noreply.github.com>
This commit is contained in:
parent
5a4bf99211
commit
2533eac4be
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ def run_command(
|
||||||
raise TimeoutError(timeout_message) from e
|
raise TimeoutError(timeout_message) from e
|
||||||
|
|
||||||
|
|
||||||
class ConversionJob(object):
|
class DangerzoneConverter:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.percentage: float = 0.0 # TODO Optional[float], but this default value will be overwritten immediately
|
self.percentage: float = 0.0 # TODO Optional[float], but this default value will be overwritten immediately
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ def main() -> int:
|
||||||
print(f"Usage: {sys.argv[0]} [document-to-pixels]|[pixels-to-pdf]")
|
print(f"Usage: {sys.argv[0]} [document-to-pixels]|[pixels-to-pdf]")
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
job = ConversionJob()
|
converter = DangerzoneConverter()
|
||||||
|
|
||||||
if sys.argv[1] == "document-to-pixels":
|
if sys.argv[1] == "document-to-pixels":
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue