Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jul 19, 2024
1 parent b110c9f commit 64fb340
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions client/securedrop_client/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 64fb340

Please sign in to comment.