diff options
author | Chris Larson <clarson@kergoth.com> | 2009-07-19 09:49:36 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-02-19 11:04:39 -0700 |
commit | e616483b237dafff7f90ba1c09e9ee7c383a2e47 (patch) | |
tree | 5cef0af656553915671afcd8f4574bca6235498b | |
parent | f3afb79ecac30d973a3c62ff6baf28d8b7388a24 (diff) | |
download | bitbake-e616483b237dafff7f90ba1c09e9ee7c383a2e47.tar.gz |
Move MalformedUrl, VarExpandError into appropriate modules.
Signed-off-by: Chris Larson <clarson@kergoth.com>
-rw-r--r-- | lib/bb/__init__.py | 8 | ||||
-rw-r--r-- | lib/bb/data.py | 3 | ||||
-rw-r--r-- | lib/bb/fetch/__init__.py | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index aa0c6de31..3195e72a6 100644 --- a/lib/bb/__init__.py +++ b/lib/bb/__init__.py @@ -80,11 +80,9 @@ if "BBDEBUG" in os.environ: if level: bb.msg.set_debug_level(level) -class VarExpandError(Exception): - pass - -class MalformedUrl(Exception): - """Exception raised when encountering an invalid url""" +# For compatibility +from bb.fetch import MalformedUrl +from bb.data import VarExpandError ####################################################################### diff --git a/lib/bb/data.py b/lib/bb/data.py index d3058b9a1..c3bb1a1f4 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -47,6 +47,9 @@ sys.path.insert(0,path) from bb import data_smart import bb +class VarExpandError(Exception): + pass + _dict_type = data_smart.DataSmart def init(): diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index b42bcf439..dd32dc314 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -29,6 +29,9 @@ import bb from bb import data from bb import persist_data +class MalformedUrl(Exception): + """Exception raised when encountering an invalid url""" + class FetchError(Exception): """Exception raised when a download fails""" |