From a78cda4ceab33318042626138aaf727a2fa871c0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 9 Apr 2017 04:21:40 +0300 Subject: [PATCH] Adapt set-commit-date.py to Python 3: turn on universal_newlines --- set-commit-date.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/set-commit-date.py b/set-commit-date.py index c5d49d4..dc6a5fb 100755 --- a/set-commit-date.py +++ b/set-commit-date.py @@ -13,7 +13,8 @@ separator = '----- GIT LOG SEPARATOR -----' git_log = subprocess.Popen(['git', 'log', '-m', '--first-parent', '--name-only', '--no-color', '--format=%s%%n%%ct' % separator], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, + universal_newlines=True) filenames = set() # stages: 1 - start of commit, 2 - timestamp, 3 - empty line, 4 - files stage = 1 -- 2.39.2