From 3a0c94b47825d3d627b53ad2ee7dcc0b62ee095c Mon Sep 17 00:00:00 2001 From: deeplow Date: Mon, 6 Nov 2023 11:39:59 +0000 Subject: [PATCH] Homogenize qubes and containers inner convert method Simple rename of the __convert() method in the Qubes conversion to make the code structurally similar. --- dangerzone/isolation_provider/qubes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerzone/isolation_provider/qubes.py b/dangerzone/isolation_provider/qubes.py index e06b79d07..b9f1fcd3d 100644 --- a/dangerzone/isolation_provider/qubes.py +++ b/dangerzone/isolation_provider/qubes.py @@ -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, @@ -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)