summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/layerindexlib/restapi.py
diff options
context:
space:
mode:
authorFrazer Clews <frazerleslieclews@gmail.com>2020-08-24 15:51:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-25 18:14:53 +0100
commitabc6f864b9c6fa9a47a218a8250e79dcfa367d4d (patch)
treee4dfa762398e1b2a8ae019e0039417be3e85d99c /bitbake/lib/layerindexlib/restapi.py
parentac3593f6ed8f2ffb0bb62df47220b598cc1781f6 (diff)
downloadpoky-abc6f864b9c6fa9a47a218a8250e79dcfa367d4d.tar.gz
bitbake: lib: fix most undefined code picked up by pylint
Correctly import, and inherit functions, and variables. Also fix some typos and remove some Python 2 code that isn't recognised. (Bitbake rev: b0c807be5c2170c9481c1a04d4c11972135d7dc5) Signed-off-by: Frazer Clews <frazerleslieclews@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/layerindexlib/restapi.py')
-rw-r--r--bitbake/lib/layerindexlib/restapi.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/layerindexlib/restapi.py b/bitbake/lib/layerindexlib/restapi.py
index 21fd144143..7023f42f20 100644
--- a/bitbake/lib/layerindexlib/restapi.py
+++ b/bitbake/lib/layerindexlib/restapi.py
@@ -5,9 +5,13 @@
5 5
6import logging 6import logging
7import json 7import json
8import os
9
8from urllib.parse import unquote 10from urllib.parse import unquote
9from urllib.parse import urlparse 11from urllib.parse import urlparse
10 12
13import bb
14
11import layerindexlib 15import layerindexlib
12import layerindexlib.plugin 16import layerindexlib.plugin
13 17
@@ -163,7 +167,7 @@ class RestApiPlugin(layerindexlib.plugin.IndexPlugin):
163 parsed = _get_json_response(apiurl=up_stripped.geturl(), username=username, password=password, retry=False) 167 parsed = _get_json_response(apiurl=up_stripped.geturl(), username=username, password=password, retry=False)
164 logger.debug(1, "%s: retry successful.") 168 logger.debug(1, "%s: retry successful.")
165 else: 169 else:
166 raise LayerIndexFetchError('%s: Connection reset by peer. Is there a firewall blocking your connection?' % apiurl) 170 raise layerindexlib.LayerIndexFetchError('%s: Connection reset by peer. Is there a firewall blocking your connection?' % apiurl)
167 171
168 return parsed 172 return parsed
169 173