* [meta-oe][morty][PATCH] gitver: fix try/except syntax for python3 support
@ 2017-03-22 13:42 Alejandro Mery
0 siblings, 0 replies; only message in thread
From: Alejandro Mery @ 2017-03-22 13:42 UTC (permalink / raw)
To: openembedded-devel
backported from master's b17bbbe2245f72144e3d036aa273c1b67434fa1c
https://www.python.org/dev/peps/pep-3110/
It's backward compatible with 2.6+
Signed-off-by: Alejandro Mery <amery@hanoverdisplays.com>
---
meta-oe/classes/gitver.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index e7b5155ee..b677996ea 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", True), ".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:
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-22 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-22 13:42 [meta-oe][morty][PATCH] gitver: fix try/except syntax for python3 support Alejandro Mery
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.