Skip to content

Commit 4b9aa61

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f37118a commit 4b9aa61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

monailabel/_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
9797
print(f"unable to find command, tried {commands}")
9898
return None, None
9999
stdout = p.communicate()[0].strip()
100-
if sys.version_info[0] >= 3:
101-
stdout = stdout.decode()
100+
stdout = stdout.decode()
102101
if p.returncode != 0:
103102
if verbose:
104103
print("unable to run %s (error)" % dispcmd)

0 commit comments

Comments
 (0)