Browse Source

added whitespaces

rinpatch 7 years ago
parent
commit
cd1374d2f2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      searx/engines/currency_convert.py

+ 1 - 2
searx/engines/currency_convert.py

@@ -44,7 +44,6 @@ def request(query, params):
     if not m:
     if not m:
         # wrong query
         # wrong query
         return params
         return params
-
     amount, from_currency, to_currency = m.groups()
     amount, from_currency, to_currency = m.groups()
     amount = float(amount)
     amount = float(amount)
     from_currency = name_to_iso4217(from_currency.strip())
     from_currency = name_to_iso4217(from_currency.strip())
@@ -64,7 +63,7 @@ def request(query, params):
 
 
 def response(resp):
 def response(resp):
     """remove first and last lines to get only json"""
     """remove first and last lines to get only json"""
-    json_resp = resp.text[resp.text.find('\n')+1:resp.text.rfind('\n')-2]
+    json_resp = resp.text[resp.text.find('\n') + 1:resp.text.rfind('\n') - 2]
     results = []
     results = []
     try:
     try:
         conversion_rate = float(json.loads(json_resp)['conversion']['converted-amount'])
         conversion_rate = float(json.loads(json_resp)['conversion']['converted-amount'])