浏览代码

[fix] kickass tests

dalf 10 年前
父节点
当前提交
9d537c0bad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      searx/engines/kickass.py

+ 1
- 1
searx/engines/kickass.py 查看文件

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)