@@ -44,7 +44,6 @@ def request(query, params):
4444 if not m:
4545 # wrong query
4646 return params
47−
4847 amount, from_currency, to_currency = m.groups()
4948 amount = float(amount)
5049 from_currency = name_to_iso4217(from_currency.strip())
@@ -64,7 +63,7 @@ def request(query, params):
6463
6564def response(resp):
6665 """remove first and last lines to get only json"""
67− json_resp = resp.text[resp.text.find('\n')+1:resp.text.rfind('\n')-2]
66+ json_resp = resp.text[resp.text.find('\n') + 1:resp.text.rfind('\n') - 2]
6867 results = []
6968 try:
7069 conversion_rate = float(json.loads(json_resp)['conversion']['converted-amount'])