From 1885089bd95d2a9e40e2411e58eac354318814f1 Mon Sep 17 00:00:00 2001 From: Hristo Date: Sun, 28 Jan 2024 14:26:06 +0200 Subject: [PATCH] fix python 3.5/3.7 compatibility issue --- src/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/update.py b/src/update.py index 3d55fce..904ecdf 100644 --- a/src/update.py +++ b/src/update.py @@ -40,7 +40,7 @@ script_dir = os.path.dirname(os.path.realpath(__file__)) os.chdir(script_dir) print(":: Updating git repository") -result = subprocess.run(['git', '-C', script_dir, 'pull'], check=True, text=True, capture_output=True) +result = subprocess.run(['git', '-C', script_dir, 'pull'], check=True, universal_newlines=True, stdout=subprocess.PIPE) print(result.stdout) if display_config_differences('config.py', 'config.py.example'):