Skip to content

Commit

Permalink
Homogenize qubes and containers inner convert method
Browse files Browse the repository at this point in the history
Simple rename of the __convert() method in the Qubes conversion to make
the code structurally similar.
  • Loading branch information
deeplow committed Nov 17, 2023
1 parent 8227389 commit 3a0c94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerzone/isolation_provider/qubes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self) -> None:
def install(self) -> bool:
return True

def __convert(
def _convert_with_tmpdirs(
self,
document: Document,
tempdir: str,
Expand Down Expand Up @@ -177,7 +177,7 @@ def _convert(
) -> bool:
try:
with tempfile.TemporaryDirectory() as t:
return self.__convert(document, t, ocr_lang)
return self._convert_with_tmpdirs(document, t, ocr_lang)
except errors.InterruptedConversion:
assert self.proc is not None
error_code = self.proc.wait(3)
Expand Down

0 comments on commit 3a0c94b

Please sign in to comment.