summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-09 16:51:09 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:33 +0100
commit978b5c946683885a64ee9e7c2064ff696f05cddb (patch)
tree0b0ce021c9b46f4aa110a549be984993296f2e0c /bitbake/lib/bb/parse
parentcbc8140c77d927f0b15234e46f4c61d1bb5376ef (diff)
downloadpoky-978b5c946683885a64ee9e7c2064ff696f05cddb.tar.gz
Deprecate the usage of certain objects via certain modules
As an example, this displays a deprecation warning for the use of "bb.encodeurl" when you should be using "bb.fetch.encodeurl". It includes a convenience function for this purpose. It should be of use when moving objects between modules permanently, changing the API the user sees. (Bitbake rev: 78f56049ba863b2e585b89db12b32697eb879bbc) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/parse_py/BBHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py
index c053b5bfdf..a770131fbc 100644
--- a/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -33,7 +33,7 @@ from ConfHandler import include, init
33from bb.parse import resolve_file, ast 33from bb.parse import resolve_file, ast
34 34
35# For compatibility 35# For compatibility
36from bb.parse import vars_from_file 36bb.deprecate_import(__name__, "bb.parse", ["vars_from_file"])
37 37
38__func_start_regexp__ = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\.\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" ) 38__func_start_regexp__ = re.compile( r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\.\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" )
39__inherit_regexp__ = re.compile( r"inherit\s+(.+)" ) 39__inherit_regexp__ = re.compile( r"inherit\s+(.+)" )