diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-07 13:55:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-09 14:04:18 +0100 |
commit | b010501cd089e649a68f683be0cf4d0aac90fbe3 (patch) | |
tree | ce5c7cba76051675e4a765dd677ffed372d4e33a /meta/lib/oe/patch.py | |
parent | 3c104443506cb89d72944e46096a94a80838a707 (diff) | |
download | openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.gz openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.tar.bz2 openembedded-core-b010501cd089e649a68f683be0cf4d0aac90fbe3.zip |
clases/lib: Use modern exception syntax
Update older code to use modern exception handling syntax which
is the form accepted by python 3.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/patch.py')
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 7ab74fae8a..cbc5cd9755 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -392,7 +392,7 @@ class UserResolver(Resolver): os.chdir(self.patchset.dir) try: self.patchset.Push(False) - except CmdError, v: + except CmdError as v: # Patch application failed patchcmd = self.patchset.Push(True, False, False) |