[OE-core] [PATCH 08/15] meta/lib/oe: Replace StandardError with Exception

Richard Purdie richard.purdie at linuxfoundation.org
Tue May 7 12:56:00 UTC 2013


StandardError is removed in python3, replace with Exception class instead.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/license.py  |    2 +-
 meta/lib/oe/terminal.py |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py
index 173e319..340da61 100644
--- a/meta/lib/oe/license.py
+++ b/meta/lib/oe/license.py
@@ -5,7 +5,7 @@ import ast
 import re
 from fnmatch import fnmatchcase as fnmatch
 
-class LicenseError(StandardError):
+class LicenseError(Exception):
     pass
 
 class LicenseSyntaxError(LicenseError):
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index aecf4e8..28470e3 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -6,10 +6,10 @@ from bb.process import Popen, ExecutionError
 logger = logging.getLogger('BitBake.OE.Terminal')
 
 
-class UnsupportedTerminal(StandardError):
+class UnsupportedTerminal(Exception):
     pass
 
-class NoSupportedTerminals(StandardError):
+class NoSupportedTerminals(Exception):
     pass
 
 
-- 
1.7.10.4





More information about the Openembedded-core mailing list