Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Work around psf/black#1289
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence committed Jun 11, 2020
1 parent 99c931e commit c209cc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions launcher/sdw_updater_gui/Updater.py
Expand Up @@ -127,7 +127,7 @@ def _check_updates_debian(vm):
sdlog.info("Checking for updates {}:{}".format(vm, current_templates[vm]))
subprocess.check_call(["qvm-run", current_templates[vm], "sudo apt update"])
subprocess.check_call(
["qvm-run", current_templates[vm], "[[ $(apt list --upgradable | wc -l) -eq 1 ]]",]
["qvm-run", current_templates[vm], "[[ $(apt list --upgradable | wc -l) -eq 1 ]]"]
)
except subprocess.CalledProcessError as e:
sdlog.error(
Expand Down Expand Up @@ -237,7 +237,7 @@ def _write_updates_status_flag_to_disk(status):
try:
sdlog.info("Setting update flag to {} in sd-app".format(status.value))
subprocess.check_call(
["qvm-run", "sd-app", "echo '{}' > {}".format(status.value, flag_file_path_sd_app),]
["qvm-run", "sd-app", "echo '{}' > {}".format(status.value, flag_file_path_sd_app)]
)
except subprocess.CalledProcessError as e:
sdlog.error("Error writing update status flag to sd-app")
Expand Down
2 changes: 1 addition & 1 deletion launcher/tests/test_updater.py
Expand Up @@ -204,7 +204,7 @@ def test_check_updates_calls_correct_commands(
subprocess_call_list = [
call(["qvm-run", current_templates[vm], "sudo apt update"]),
call(
["qvm-run", current_templates[vm], "[[ $(apt list --upgradable | wc -l) -eq 1 ]]",]
["qvm-run", current_templates[vm], "[[ $(apt list --upgradable | wc -l) -eq 1 ]]"]
),
]
check_output_call_list = [
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -17,7 +17,7 @@
license="GPLv3+",
python_requires=">=3.5",
url="https://github.com/freedomofpress/securdrop-workstation",
data_files=[("share/securedrop-workstation-dom0-config", ["config.json.example"]),],
data_files=[("share/securedrop-workstation-dom0-config", ["config.json.example"])],
classifiers=(
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit c209cc1

Please sign in to comment.