diff options
| author | Chris Larson <clarson@kergoth.com> | 2009-07-19 09:54:46 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-03-22 14:54:26 +0000 |
| commit | b7d175a18a0fab65ff4022e15c68e079296c8e82 (patch) | |
| tree | 64076240e26e855942a38e3d33bd4cdaea8c2b1b | |
| parent | ac392b66a545ae1c62b61817aa688304c4d56f09 (diff) | |
| download | poky-b7d175a18a0fab65ff4022e15c68e079296c8e82.tar.gz | |
Move compat imports in the bb package to avoid circular dep issues.
(Bitbake rev: b66c129edc7d78fed9d41b0c634744ec81931b21)
Signed-off-by: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
| -rw-r--r-- | bitbake/lib/bb/__init__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index de5f0321fa..84116f4f6a 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
| @@ -80,11 +80,6 @@ if "BBDEBUG" in os.environ: | |||
| 80 | if level: | 80 | if level: |
| 81 | bb.msg.set_debug_level(level) | 81 | bb.msg.set_debug_level(level) |
| 82 | 82 | ||
| 83 | # For compatibility | ||
| 84 | from bb.fetch import MalformedUrl, encodeurl, decodeurl | ||
| 85 | from bb.data import VarExpandError | ||
| 86 | |||
| 87 | |||
| 88 | ####################################################################### | 83 | ####################################################################### |
| 89 | ####################################################################### | 84 | ####################################################################### |
| 90 | # | 85 | # |
| @@ -1019,6 +1014,10 @@ def dep_opconvert(mysplit, myuse): | |||
| 1019 | mypos += 1 | 1014 | mypos += 1 |
| 1020 | return newsplit | 1015 | return newsplit |
| 1021 | 1016 | ||
| 1017 | # For compatibility | ||
| 1018 | from bb.fetch import MalformedUrl, encodeurl, decodeurl | ||
| 1019 | from bb.data import VarExpandError | ||
| 1020 | |||
| 1022 | if __name__ == "__main__": | 1021 | if __name__ == "__main__": |
| 1023 | import doctest, bb | 1022 | import doctest, bb |
| 1024 | bb.msg.set_debug_level(0) | 1023 | bb.msg.set_debug_level(0) |
