From 96a67a9816dcfe32bb669a6e5f7c3734e7a7581a Mon Sep 17 00:00:00 2001 From: dongheng Date: Fri, 14 Jun 2019 14:52:45 +0800 Subject: [PATCH] docs(script): fix python3 data type error --- docs/gen-version-specific-includes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/gen-version-specific-includes.py b/docs/gen-version-specific-includes.py index 181306f52..71d5eb82b 100755 --- a/docs/gen-version-specific-includes.py +++ b/docs/gen-version-specific-includes.py @@ -162,6 +162,8 @@ def get_version(): # Otherwise, use git to look for a tag try: tag = subprocess.check_output(["git", "describe", "--tags", "--exact-match"]).strip() + if isinstance(tag, bytes): + tag = tag.decode() is_stable = re.match(r"v[0-9\.]+$", tag) is not None return (tag, "tag", is_stable) except subprocess.CalledProcessError: