Skip to content

Commit 3ad3fd7

Browse files
committed
Merge branch 'docs/fix_script_python3_data_type_error' into 'master'
script: fix python3 data type error See merge request sdk/ESP8266_RTOS_SDK!987
2 parents 7ad4ba4 + 96a67a9 commit 3ad3fd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gen-version-specific-includes.py

+2
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)