From: Richard Purdie Date: Tue, 7 May 2013 12:56:00 +0000 (+0100) Subject: meta/lib/oe: Replace StandardError with Exception X-Git-Tag: rev_ivi_2015_02_04~12656 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef051cf093cf3db334d8b9e3d4de47ddab2699d3;p=scm%2Fbb%2Ftizen-distro.git meta/lib/oe: Replace StandardError with Exception StandardError is removed in python3, replace with Exception class instead. (From OE-Core rev: a37ae30b9766df346ca57755530024a0b7d5f86b) Signed-off-by: Richard Purdie --- 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