Don't redefine built-in
This commit is contained in:
parent
a6f209a3f9
commit
f13c94abe8
|
@ -4197,13 +4197,13 @@ class BadSessionError(ScrobblingError):
|
||||||
|
|
||||||
class _ScrobblerRequest(object):
|
class _ScrobblerRequest(object):
|
||||||
|
|
||||||
def __init__(self, url, params, network, type="POST"):
|
def __init__(self, url, params, network, request_type="POST"):
|
||||||
|
|
||||||
for key in params:
|
for key in params:
|
||||||
params[key] = str(params[key])
|
params[key] = str(params[key])
|
||||||
|
|
||||||
self.params = params
|
self.params = params
|
||||||
self.type = type
|
self.type = request_type
|
||||||
(self.hostname, self.subdir) = url_split_host(url[len("http:"):])
|
(self.hostname, self.subdir) = url_split_host(url[len("http:"):])
|
||||||
self.network = network
|
self.network = network
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue