summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2016-05-12 15:41:50 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:10:02 +0100
commitecfcc5dad20943b762a741546732a6c447265251 (patch)
tree9cf71aa352707768b3ca217daf28997405378361
parentd022b4335100612d6596cc4c4956cb98ed5873cc (diff)
downloadopenembedded-core-ecfcc5dad20943b762a741546732a6c447265251.tar.gz
openembedded-core-ecfcc5dad20943b762a741546732a6c447265251.tar.bz2
openembedded-core-ecfcc5dad20943b762a741546732a6c447265251.zip
sanity: Switch urlparse to urllib.parse
urlparse is replaced with urllib.parse functionality in python3 Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index addeab66c5..088dd2ac23 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -903,13 +903,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