jenkins-bot has submitted this change and it was merged.
Change subject: comms/http.py: Pyflakes fixes
......................................................................
comms/http.py: Pyflakes fixes
local variable 'proto' is assigned to but never used
local variable 'host' is assigned to but never used
Change-Id: Ibad5d84dffdd9f555b8d3ef21efce05497952349
---
M pywikibot/comms/http.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index 95d0cdc..d383378 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -152,7 +152,7 @@
else:
proto = site.protocol()
host = site.hostname()
- baseuri = urlparse.urljoin("%(proto)s://%(host)s" % locals(), uri)
+ baseuri = urlparse.urljoin("%s://%s" % (proto, host), uri)
else:
baseuri = uri
--
To view, visit
https://gerrit.wikimedia.org/r/151398
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibad5d84dffdd9f555b8d3ef21efce05497952349
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>