Sfoglia il codice sorgente

[fix] kickass tests

dalf 10 anni fa
parent
commit
9d537c0bad
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      searx/engines/kickass.py

+ 1
- 1
searx/engines/kickass.py Vedi File

@@ -47,7 +47,7 @@ def response(resp):
47 47
 
48 48
     # check if redirect comparing to the True value,
49 49
     # because resp can be a Mock object, and any attribut name returns something.
50
-    if resp.is_redirect == True:
50
+    if resp.is_redirect is True:
51 51
         return results
52 52
 
53 53
     dom = html.fromstring(resp.text)