[oe-commits] [openembedded-core] 10/24: Switch urlparse to urllib.parse

git at git.openembedded.org git at git.openembedded.org
Sun May 22 15:12:51 UTC 2016


rpurdie pushed a commit to branch python3
in repository openembedded-core.

commit 604ee70a5830f9b204a9c32cb8a90f8a6886fd3e
Author: Jeremy Puhlman <jpuhlman at mvista.com>
AuthorDate: Thu May 12 15:41:50 2016 -0700

    Switch urlparse to urllib.parse
    
    urlparse is replaced with urllib.parse functionality in python3
    
    Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/sanity.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 27e061d..e04a236 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -891,13 +891,13 @@ def check_sanity_everybuild(status, d):
                 continue
 
             if mirror.startswith('file://'):
-                import urlparse
-                check_symlink(urlparse.urlparse(mirror).path, d)
+                import urllib
+                check_symlink(urllib.parse.urlparse(mirror).path, d)
                 # SSTATE_MIRROR ends with a /PATH string
                 if mirror.endswith('/PATH'):
                     # remove /PATH$ from SSTATE_MIRROR to get a working
                     # base directory path
-                    mirror_base = urlparse.urlparse(mirror[:-1*len('/PATH')]).path
+                    mirror_base = urllib.parse.urlparse(mirror[:-1*len('/PATH')]).path
                     check_symlink(mirror_base, d)
 
     # Check that TMPDIR hasn't changed location since the last time we were run

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list