Skip to content

Commit 96a67a9

Browse files
donghengdongheng
dongheng
authored and
dongheng
committed
docs(script): fix python3 data type error
1 parent 7ad4ba4 commit 96a67a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gen-version-specific-includes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def get_version():
162162
# Otherwise, use git to look for a tag
163163
try:
164164
tag = subprocess.check_output(["git", "describe", "--tags", "--exact-match"]).strip()
165+
if isinstance(tag, bytes):
166+
tag = tag.decode()
165167
is_stable = re.match(r"v[0-9\.]+$", tag) is not None
166168
return (tag, "tag", is_stable)
167169
except subprocess.CalledProcessError:

0 commit comments

Comments
 (0)