-#!/usr/bin/python
+#!/usr/bin/python3
-# Copyright (C) 2018 Simon Ruderich
+# Copyright (C) 2018-2019 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
submodule_path = os.getcwd()
submodule = os.path.relpath(submodule_path, repo_path)
-evtag = subprocess.check_output(['git-evtag-compute-py', sha1]).split('\n')
+evtag = subprocess.check_output(['git-evtag-compute-py', sha1]) \
+ .decode('ascii') \
+ .split('\n')
assert evtag[0].startswith('# git-evtag comment: ')
assert evtag[1].startswith('Git-EVTag-v0-SHA512: ')
os.chdir(repo_path)
-log = subprocess.check_output(['git', 'log', '-1', '--', submodule])
+log = subprocess.check_output(['git', 'log', '-1', '--', submodule]) \
+ .decode('ascii')
found_comment = False
found_evtag = False