Skip to content

Commit 48b4625

Browse files
pjfbashtonraymondbutcher
authored andcommitted
In python3 command output will be a bytestring (claranet#5)
1 parent ea90b29 commit 48b4625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terrafile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def has_git_tag(path, tag):
6666
if os.path.isdir(path):
6767
output, returncode = run('git', 'tag', '--points-at=HEAD', cwd=path)
6868
if returncode == 0:
69-
tags.update(output.split())
69+
tags.update([t.decode('utf-8') for t in output.split()])
7070
return tag in tags
7171

7272

0 commit comments

Comments
 (0)