Explorar el Código

[fix] kickass tests

dalf hace 10 años
padre
commit
9d537c0bad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      searx/engines/kickass.py

+ 1
- 1
searx/engines/kickass.py Ver fichero

47
 
47
 
48
     # check if redirect comparing to the True value,
48
     # check if redirect comparing to the True value,
49
     # because resp can be a Mock object, and any attribut name returns something.
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
         return results
51
         return results
52
 
52
 
53
     dom = html.fromstring(resp.text)
53
     dom = html.fromstring(resp.text)