Skip to contentSkip to conversation

fetch2/wget: Fix typo in exception name

PATCH In review Richard Purdie 2 participants 2 messages Dec 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2/wget: Fix typo in exception name

This could clearly never have worked but as its in an error path, it doesn't get tested/used much.

---
 lib/bb/fetch2/wget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/wget.py +1 -1
index 8f505b6de9..1237e56098 100644
@@ -168,7 +168,7 @@ class Wget(FetchMethod):
                 """
                 host = req.host
                 if not host:
-                    raise urlllib2.URLError('no host given')
+                    raise urllib.error.URLError('no host given')
 
                 h = http_class(host, timeout=req.timeout) # will parse host:port
                 h.set_debuglevel(self._debuglevel)
Signature · 1 line
2.19.1
#1 lore raw
Quoted 2 lines · Richard Purdie

This could clearly never have worked but as its in an error path, it doesn't get tested/used much.

For the record, could clearly never have worked *since* the python3 migration.

commit 0f2c59367a649de5f57acdccfb4f1fdba9cde730
Author: Richard Purdie <[email protected]>
Date: Thu May 12 08:30:35 2016 +0100

bitbake: bitbake: Convert to python 3

Signature · 1 line
olofjn