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:
deeplow 2023-11-06 11:39:59 +00:00
parent 93bf0af348
commit dca46d0a6b
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

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