From 2ac4f8b39711209ba9323fc221c1dcd185da57ea Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 7 May 2013 13:55:55 +0100 Subject: clases/lib: Use modern exception syntax Update older code to use modern exception handling syntax which is the form accepted by python 3. (From OE-Core rev: b010501cd089e649a68f683be0cf4d0aac90fbe3) Signed-off-by: Richard Purdie --- meta/lib/oe/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/types.py') diff --git a/meta/lib/oe/types.py b/meta/lib/oe/types.py index ea53df9bf2..5dac9de239 100644 --- a/meta/lib/oe/types.py +++ b/meta/lib/oe/types.py @@ -92,7 +92,7 @@ def regex(value, regexflags=None): try: return re.compile(value, flagval) - except re.error, exc: + except re.error as exc: raise ValueError("Invalid regex value '%s': %s" % (value, exc.args[0])) -- cgit v1.2.3-54-g00ecf