summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:55:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:06:50 +0100
commit2ac4f8b39711209ba9323fc221c1dcd185da57ea (patch)
treecbaa1e573abd13c7827a5b4a57724fd884df148b /meta/lib/oe/utils.py
parent00052fe69582f238166511e733d3ba875cbe0ad2 (diff)
downloadpoky-2ac4f8b39711209ba9323fc221c1dcd185da57ea.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py2
1 files changed, 1 insertions, 1 deletions
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 @@
1def read_file(filename): 1def read_file(filename):
2 try: 2 try:
3 f = file( filename, "r" ) 3 f = file( filename, "r" )
4 except IOError, reason: 4 except IOError as reason:
5 return "" # WARNING: can't raise an error now because of the new RDEPENDS handling. This is a bit ugly. :M: 5 return "" # WARNING: can't raise an error now because of the new RDEPENDS handling. This is a bit ugly. :M:
6 else: 6 else:
7 return f.read().strip() 7 return f.read().strip()