From e06f41a40f9c68dbe71d17d3d1c31133eba8560d Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Wed, 4 Sep 2019 10:42:13 +0200 Subject: [PATCH] Fix for python 3.6 --- osclib/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/git.py b/osclib/git.py index 7855c10b..cf386b05 100644 --- a/osclib/git.py +++ b/osclib/git.py @@ -9,7 +9,7 @@ def describe(directory=None): ret = subprocess.run( ['git', 'show', '--no-patch', '--date=short', '--format=%cd.%h'], - capture_output=True, text=True) + stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True) if directory: os.chdir(cwd)