From b010501cd089e649a68f683be0cf4d0aac90fbe3 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. Signed-off-by: Richard Purdie --- meta/lib/oe/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/lib/oe/utils.py') diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index acd39693b5..ed9409613a 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -1,7 +1,7 @@ def read_file(filename): try: f = file( filename, "r" ) - except IOError, reason: + except IOError as reason: return "" # WARNING: can't raise an error now because of the new RDEPENDS handling. This is a bit ugly. :M: else: return f.read().strip() -- cgit 1.2.3-korg