1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-15 13:57:54 +00:00

recipes: python3 fixes

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Denys Dmytriyenko
2016-10-08 10:36:45 +00:00
parent 02a43b25f7
commit 48ffe2b2da
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ def get_git_revision(p):
import subprocess
try:
return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE).communicate()[0].rstrip()
return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].rstrip()
except OSError:
return None