mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Homogenize qubes and containers inner convert method
Simple rename of the __convert() method in the Qubes conversion to make the code structurally similar.
This commit is contained in:
parent
93bf0af348
commit
dca46d0a6b
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class Qubes(IsolationProvider):
|
|||
def install(self) -> bool:
|
||||
return True
|
||||
|
||||
def __convert(
|
||||
def _convert_with_tmpdirs(
|
||||
self,
|
||||
document: Document,
|
||||
tempdir: str,
|
||||
|
@ -177,7 +177,7 @@ class Qubes(IsolationProvider):
|
|||
) -> 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)
|
||||
|
|
Loading…
Reference in a new issue