summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-22 08:44:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-22 15:48:23 +0100
commit06b7bafbd18a47c8db2f7b943dc535c65df176bf (patch)
treea3180f10e4e710dc3c13ac3bc21b3a4d6c81568d
parentd193d93422a0ad62aa35b5d4ca5da8d422f72180 (diff)
downloadbitbake-contrib-06b7bafbd18a47c8db2f7b943dc535c65df176bf.tar.gz
fetch2/wget: Remove buffering parameter
The buffering parameter was removed in python 3.1 and made default so we can clean up the code. This removes weird looking double exceptions when connections fail. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/wget.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index f7d1de26b..e6d9f528d 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -208,10 +208,7 @@ class Wget(FetchMethod):
fetch.connection_cache.remove_connection(h.host, h.port)
raise urllib.error.URLError(err)
else:
- try:
- r = h.getresponse(buffering=True)
- except TypeError: # buffering kw not supported
- r = h.getresponse()
+ r = h.getresponse()
# Pick apart the HTTPResponse object to get the addinfourl
# object initialized properly.