Skip to content
Snippets Groups Projects
Commit 9bc901ef authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Python3: lib obsoletes, another generator -> list (thanks to Radko Krkos)

parent 78a5f892
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,6 @@ class Client(object):
if self.url.scheme=="https":
conn = HTTPSConnection(
self.url.netloc,
strict = False,
key_file = self.keyfile,
cert_file = self.certfile,
timeout = self.timeout,
......@@ -365,7 +364,6 @@ class Client(object):
elif self.url.scheme=="http":
conn = httplib.HTTPConnection(
self.url.netloc,
strict = False,
timeout = self.timeout)
else:
return Error(message="Don't know how to connect to \"%s\"" % self.url.scheme,
......@@ -391,7 +389,7 @@ class Client(object):
kwargs["secret"] = self.secret
if kwargs:
for k in kwargs.keys():
for k in list(kwargs.keys()):
if kwargs[k] is None:
del kwargs[k]
argurl = "?" + urlencode(kwargs, doseq=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment