From ef6b515c92e3a0d926fbaf83721ef183921b577b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCdepohl?= <lorenz.huedepohl@rzg.mpg.de> Date: Thu, 31 Oct 2019 10:30:13 +0100 Subject: [PATCH] More Python 2 idiosyncrasies --- mpcdf_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpcdf_common.py b/mpcdf_common.py index b61f54e..555daf3 100644 --- a/mpcdf_common.py +++ b/mpcdf_common.py @@ -70,7 +70,7 @@ def check_for_update(): url = "https://gitlab.mpcdf.mpg.de/mpcdf/osc-plugins.git" def update_server_rev(): - server_rev, _ = check_output(["git", "ls-remote", url, "master"], **set_encoding).split(maxsplit=1) + server_rev, _ = check_output(["git", "ls-remote", url, "master"], **set_encoding).split(None, 1) with open(rev_file, "w") as fd: fd.write(server_rev) -- GitLab