mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-05 13:16:37 +08:00
docs(script): fix python3 data type error
This commit is contained in:
@ -162,6 +162,8 @@ def get_version():
|
|||||||
# Otherwise, use git to look for a tag
|
# Otherwise, use git to look for a tag
|
||||||
try:
|
try:
|
||||||
tag = subprocess.check_output(["git", "describe", "--tags", "--exact-match"]).strip()
|
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
|
is_stable = re.match(r"v[0-9\.]+$", tag) is not None
|
||||||
return (tag, "tag", is_stable)
|
return (tag, "tag", is_stable)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
Reference in New Issue
Block a user