aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
diff options
context:
space:
mode:
authorAlejandro Mery <amery@hanoverdisplays.com>2017-03-01 14:19:08 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2017-03-07 13:30:26 +0100
commitb17bbbe2245f72144e3d036aa273c1b67434fa1c (patch)
treeccb50da0e0b5166c76d065f8665f19e6afe0c617 /meta-oe/classes
parent0c31f55bcfd6630d894dd2dda6ca483bea5de4ab (diff)
downloadmeta-openembedded-b17bbbe2245f72144e3d036aa273c1b67434fa1c.tar.gz
meta-openembedded-b17bbbe2245f72144e3d036aa273c1b67434fa1c.tar.bz2
meta-openembedded-b17bbbe2245f72144e3d036aa273c1b67434fa1c.zip
gitver: fix try/except syntax for python3 support
https://www.python.org/dev/peps/pep-3110/ It's backward compatible with 2.6+ Signed-off-by: Alejandro Mery <amery@hanoverdisplays.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r--meta-oe/classes/gitver.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index 71bf42fbc..a16429aa8 100644
--- a/meta-oe/classes/gitver.bbclass
+++ b/meta-oe/classes/gitver.bbclass
@@ -27,13 +27,13 @@ def get_git_pv(path, d, tagadjust=None):
gitdir = os.path.abspath(os.path.join(d.getVar("S"), ".git"))
try:
ver = gitrev_run("git describe --tags", gitdir)
- except Exception, exc:
+ except Exception as exc:
bb.fatal(str(exc))
if not ver:
try:
ver = gitrev_run("git rev-parse --short HEAD", gitdir)
- except Exception, exc:
+ except Exception as exc:
bb.fatal(str(exc))
if ver: