aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-16 13:31:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-19 15:29:34 +0000
commit329986c3f2d98c4cd1a43b725194003575e718d5 (patch)
treefcc36394d04aa1d1a2ae6c013130d47351769552
parentee59fdaae68543ade03cacfdbbf14fdc7e469412 (diff)
downloadbitbake-contrib-329986c3f2d98c4cd1a43b725194003575e718d5.tar.gz
fetch2/wget: Remove pointless lambda function
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/wget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index f86047a93..3bb3e3bb0 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -290,7 +290,7 @@ class Wget(FetchMethod):
"""
def redirect_request(self, req, fp, code, msg, headers, newurl):
newreq = urllib.request.HTTPRedirectHandler.redirect_request(self, req, fp, code, msg, headers, newurl)
- newreq.get_method = lambda: req.get_method()
+ newreq.get_method = req.get_method
return newreq
exported_proxies = export_proxies(d)