Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
94ef8879
Commit
94ef8879
authored
Aug 12, 2015
by
Damien George
Browse files
py/makeversionhdr.py: Use returncode attr to be Python2.7 compat.
parent
b7d59060
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/makeversionhdr.py
View file @
94ef8879
...
...
@@ -23,7 +23,7 @@ def get_version_info_from_git():
try
:
git_tag
=
subprocess
.
check_output
([
"git"
,
"describe"
,
"--dirty"
,
"--always"
],
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
).
strip
()
except
subprocess
.
CalledProcessError
as
er
:
if
er
.
args
[
0
]
==
128
:
if
er
.
returncode
==
128
:
# git exit code of 128 means no repository found
return
None
git_tag
=
""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment