diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:57:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:10:04 +0100 |
commit | fcd6b38bab8517d83e1ed48eef1bca9a9a190f57 (patch) | |
tree | 74b1ae041ac6fbc838cc2b3a44953ed3e99360b9 /meta/lib/oe/distro_check.py | |
parent | dad9617809c60ec5f11d4780b0afa1cffa1efed5 (diff) | |
download | openembedded-core-fcd6b38bab8517d83e1ed48eef1bca9a9a190f57.tar.gz openembedded-core-fcd6b38bab8517d83e1ed48eef1bca9a9a190f57.tar.bz2 openembedded-core-fcd6b38bab8517d83e1ed48eef1bca9a9a190f57.zip |
classes/lib: Complete transition to python3
This patch contains all the other misc pieces of the transition to
python3 which didn't make sense to be broken into individual patches.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/distro_check.py')
-rw-r--r-- | meta/lib/oe/distro_check.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index ba1bba678d..746e242f5d 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py @@ -1,8 +1,8 @@ from contextlib import contextmanager @contextmanager def create_socket(url, d): - import urllib - socket = urllib.urlopen(url, proxies=get_proxies(d)) + import urllib.request, urllib.parse, urllib.error + socket = urllib.request.urlopen(url, proxies=get_proxies(d)) try: yield socket finally: |