Patchwork [08/15] meta/lib/oe: Replace StandardError with Exception

login
register
mail settings
Submitter Richard Purdie
Date May 7, 2013, 12:56 p.m.
Message ID <1367931368-21504-8-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/49453/
State Accepted
Commit feeffdb5b60bec099c139b6a36b7788ecf7212bf
Headers show

Comments

Richard Purdie - May 7, 2013, 12:56 p.m.
StandardError is removed in python3, replace with Exception class instead.

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

Patch

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