diff --git a/client/securedrop_client/export.py b/client/securedrop_client/export.py index 314988d11..4e9963166 100644 --- a/client/securedrop_client/export.py +++ b/client/securedrop_client/export.py @@ -152,7 +152,7 @@ def export(self, filepaths: List[str], passphrase: Optional[str]) -> None: self.export_state_changed.emit(ExportError(ExportStatus.ERROR_EXPORT)) def _run_qrexec_export( - self, archive_path: str, success_callback: Callable, error_callback: Callable + self, archive_path: str, success_callback: Callable, error_callback: Callable ) -> None: """ Send the archive to the Export VM, where the archive will be processed. @@ -337,12 +337,12 @@ def print(self, filepaths: List[str]) -> None: self.print_failed.emit(ExportError(ExportStatus.ERROR_PRINT)) def _create_archive( - self, - archive_dir: str, - archive_fn: str, - metadata: dict, - filepaths: List[str] = [], - whistleflow: bool = False, + self, + archive_dir: str, + archive_fn: str, + metadata: dict, + filepaths: List[str] = [], + whistleflow: bool = False, ) -> str: """ Create the archive to be sent to the Export VM. @@ -391,7 +391,7 @@ def _create_archive( return archive_path def _add_virtual_file_to_archive( - self, archive: tarfile.TarFile, filename: str, filedata: dict + self, archive: tarfile.TarFile, filename: str, filedata: dict ) -> None: """ Add filedata to a stream of in-memory bytes and add these bytes to the archive. @@ -409,7 +409,7 @@ def _add_virtual_file_to_archive( archive.addfile(tarinfo, filedata_bytes) def _add_file_to_archive( - self, archive: tarfile.TarFile, filepath: str, prevent_name_collisions: bool = False + self, archive: tarfile.TarFile, filepath: str, prevent_name_collisions: bool = False ) -> None: """ Add the file to the archive. When the archive is extracted, the file should exist in a