File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,9 @@ def check_output(args):
59
59
raise subprocess .CalledProcessError (ret , args [0 ], output = out )
60
60
61
61
if type (out ) is bytes :
62
- """
63
- git isn't guaranteed to always return UTF-8, but for our purposes
64
- this should be fine as tags and hashes should be ASCII only.
65
- """
66
- out = out .decode ('utf-8' )
62
+ # git isn't guaranteed to always return UTF-8, but for our purposes
63
+ # this should be fine as tags and hashes should be ASCII only.
64
+ out = out .decode ('utf-8' )
67
65
68
66
return out
69
67
@@ -85,7 +83,7 @@ def check_head_tag():
85
83
if len (tags ) == 1 :
86
84
tag = tags [0 ]
87
85
elif len (tags ) > 1 :
88
- raise Exception ('Expected 1 or 0 tags on HEAD, got: {}' .format (tags ))
86
+ raise Exception ('Expected 1 or 0 tags on HEAD, got: {}' .format (tags ))
89
87
90
88
release_tag_match = RELEASE_TAG_RE .match (tag )
91
89
if release_tag_match :
You can’t perform that action at this time.
0 commit comments