]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
image-buildinfo: Update to python3 syntax
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Jun 2016 07:18:41 +0000 (08:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 5 Jun 2016 07:18:50 +0000 (08:18 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-buildinfo.bbclass

index 197b24235b2effdc6450055ef11528b64c1e5fab..83d0db37d8624349b6b3f602302b9ecd6b0b536d 100644 (file)
@@ -32,7 +32,7 @@ def get_layer_git_status(path):
                                 shell=True,
                                 stderr=subprocess.STDOUT)
         return ""
-    except subprocess.CalledProcessError, ex:
+    except subprocess.CalledProcessError as ex:
         # Silently treat errors as "modified", without checking for the
         # (expected) return code 1 in a modified git repo. For example, we get
         # output and a 129 return code when a layer isn't a git repo at all.