summaryrefslogtreecommitdiff
path: root/py/makeversionhdr.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/makeversionhdr.py')
-rw-r--r--py/makeversionhdr.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/py/makeversionhdr.py b/py/makeversionhdr.py
index 5c73501b3..aec95f08e 100644
--- a/py/makeversionhdr.py
+++ b/py/makeversionhdr.py
@@ -1,7 +1,7 @@
"""
Generate header file with macros defining MicroPython version info.
-This script works with Python 2.6, 2.7, 3.3 and 3.4.
+This script works with Python 3.3+.
"""
from __future__ import print_function
@@ -22,12 +22,6 @@ import subprocess
# "vX.Y.Z-preview.N.gHASH.dirty" -- building at any subsequent commit in the cycle
# with local changes
def get_version_info_from_git(repo_path):
- # Python 2.6 doesn't have check_output, so check for that
- try:
- subprocess.check_output
- except AttributeError:
- return None
-
# Note: git describe doesn't work if no tag is available
try:
git_tag = subprocess.check_output(
@@ -57,12 +51,6 @@ def get_version_info_from_git(repo_path):
def get_hash_from_git(repo_path):
- # Python 2.6 doesn't have check_output, so check for that.
- try:
- subprocess.check_output
- except AttributeError:
- return None
-
try:
return subprocess.check_output(
["git", "rev-parse", "--short", "HEAD"],