Skip to content

Commit a949c2a

Browse files
authored
minor formatting fixes (#1062)
1 parent aca53d4 commit a949c2a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/calc_release_version.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,9 @@ def check_output(args):
5959
raise subprocess.CalledProcessError(ret, args[0], output=out)
6060

6161
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')
6765

6866
return out
6967

@@ -85,7 +83,7 @@ def check_head_tag():
8583
if len(tags) == 1:
8684
tag = tags[0]
8785
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))
8987

9088
release_tag_match = RELEASE_TAG_RE.match(tag)
9189
if release_tag_match:

0 commit comments

Comments
 (0)