diff options
author | BonfaceKilz | 2021-06-29 13:16:09 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-06-29 14:50:30 +0300 |
commit | d6715cff2e5a1771b22bb2ce7680347cad501841 (patch) | |
tree | 5b9f93385e15ae47cee632eacf4e1e84f9845f62 /gn3/computations | |
parent | 69da1064e0815f4c60584a977d928c64c3f68507 (diff) | |
download | genenetwork3-d6715cff2e5a1771b22bb2ce7680347cad501841.tar.gz |
Replace list with a tuple as an argument when setting success_codes
* gn3/commands.py (run_cmd): Replace type of success_codes from List to Tuple
* gn3/computations/diff.py (generate_diff): Pass success_codes as a Tuple when
calling "run_cmd".
Diffstat (limited to 'gn3/computations')
-rw-r--r-- | gn3/computations/diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/computations/diff.py b/gn3/computations/diff.py index 4bbc6cf..af02f7f 100644 --- a/gn3/computations/diff.py +++ b/gn3/computations/diff.py @@ -6,7 +6,7 @@ from gn3.commands import run_cmd def generate_diff(data: str, edited_data: str) -> Optional[str]: """Generate the diff between 2 files""" - results = run_cmd(f"diff {data} {edited_data}", success_codes=[1, 2]) + results = run_cmd(f"diff {data} {edited_data}", success_codes=(1, 2)) if results.get("code", -1) > 0: return results.get("output") return None |