Skip to content

Commit

Permalink
Merge branch 'docs/fix_script_python3_data_type_error' into 'master'
Browse files Browse the repository at this point in the history
script: fix python3 data type error

See merge request sdk/ESP8266_RTOS_SDK!987
  • Loading branch information
donghengqaz committed Jun 14, 2019
2 parents 7ad4ba4 + 96a67a9 commit 3ad3fd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/gen-version-specific-includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ad3fd7

Please sign in to comment.