summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
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-24 09:08:14 +0100
commite4df6ef7f537ea86c8da98ef7dd724d89d7f35cb (patch)
tree1471e06a7b3d3daf161a9fee20c840dfb3456a75 /bitbake/lib/bb/fetch2/wget.py
parent7970db399710cf5a40d82d6766b6fe732b394b9e (diff)
downloadpoky-e4df6ef7f537ea86c8da98ef7dd724d89d7f35cb.tar.gz
bitbake: 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. (Bitbake rev: 06b7bafbd18a47c8db2f7b943dc535c65df176bf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index f7d1de26b7..e6d9f528d0 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -208,10 +208,7 @@ class Wget(FetchMethod):
208 fetch.connection_cache.remove_connection(h.host, h.port) 208 fetch.connection_cache.remove_connection(h.host, h.port)
209 raise urllib.error.URLError(err) 209 raise urllib.error.URLError(err)
210 else: 210 else:
211 try: 211 r = h.getresponse()
212 r = h.getresponse(buffering=True)
213 except TypeError: # buffering kw not supported
214 r = h.getresponse()
215 212
216 # Pick apart the HTTPResponse object to get the addinfourl 213 # Pick apart the HTTPResponse object to get the addinfourl
217 # object initialized properly. 214 # object initialized properly.