From f13c94abe8cec029bc569b8fdb0c4a63cada7139 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 12 Apr 2015 19:39:19 +0300 Subject: [PATCH] Don't redefine built-in --- pylast/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index da5cb5e..6076d42 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -4197,13 +4197,13 @@ class BadSessionError(ScrobblingError): class _ScrobblerRequest(object): - def __init__(self, url, params, network, type="POST"): + def __init__(self, url, params, network, request_type="POST"): for key in params: params[key] = str(params[key]) self.params = params - self.type = type + self.type = request_type (self.hostname, self.subdir) = url_split_host(url[len("http:"):]) self.network = network