Patchwork [bitbake-devel,16/16] bitbake: bb: Drop deprecated functions

login
register
mail settings
Submitter Richard Purdie
Date Sept. 16, 2013, 9:53 p.m.
Message ID <1379368413-9808-16-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/58211/
State Accepted
Commit 89b31a4fb44f2c2ad0bb4210151652cd3730418d
Headers show

Comments

Richard Purdie - Sept. 16, 2013, 9:53 p.m.
These functions in the main bb module have long been deprecated
and moved to other modules. Finally remove the compatibility links.

(Bitbake rev: ccd181c3ed4852e2b9169cf19aaf18aeacddcc18)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/__init__.py | 3 ---
 1 file changed, 3 deletions(-)
Richard Purdie - Sept. 17, 2013, 9:42 a.m.
On Mon, 2013-09-16 at 22:53 +0100, Richard Purdie wrote:
> These functions in the main bb module have long been deprecated
> and moved to other modules. Finally remove the compatibility links.
> 
> (Bitbake rev: ccd181c3ed4852e2b9169cf19aaf18aeacddcc18)
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  lib/bb/__init__.py | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
> index 018b744..8a23a0f 100644
> --- a/lib/bb/__init__.py
> +++ b/lib/bb/__init__.py
> @@ -140,6 +140,3 @@ def deprecate_import(current, modulename, fromlist, renames = None):
>  
>          setattr(sys.modules[current], newname, newobj)
>  
> -deprecate_import(__name__, "bb.fetch", ("MalformedUrl", "encodeurl", "decodeurl"))
> -deprecate_import(__name__, "bb.utils", ("mkdirhier", "movefile", "copyfile", "which"))
> -deprecate_import(__name__, "bb.utils", ["vercmp_string"], ["vercmp"])

I should be clear with this one that now isn't the ideal time to merge
this and that isn't my intention. 

It is a reminder to people that this API *will* go away soon in the 1.6
cycle though.

Cheers,

Richard

Patch

diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index 018b744..8a23a0f 100644
--- a/lib/bb/__init__.py
+++ b/lib/bb/__init__.py
@@ -140,6 +140,3 @@  def deprecate_import(current, modulename, fromlist, renames = None):
 
         setattr(sys.modules[current], newname, newobj)
 
-deprecate_import(__name__, "bb.fetch", ("MalformedUrl", "encodeurl", "decodeurl"))
-deprecate_import(__name__, "bb.utils", ("mkdirhier", "movefile", "copyfile", "which"))
-deprecate_import(__name__, "bb.utils", ["vercmp_string"], ["vercmp"])