浏览代码

[mod] upgrade requirements.txt

Alexandre Flament 8 年前
父节点
当前提交
181c12ae04
共有 2 个文件被更改,包括 9 次插入12 次删除
  1. 6
    7
      requirements.txt
  2. 3
    5
      searx/webapp.py

+ 6
- 7
requirements.txt 查看文件

1
-certifi==2016.9.26
1
+certifi==2017.1.23
2
 flask==0.12
2
 flask==0.12
3
 flask-babel==0.11.1
3
 flask-babel==0.11.1
4
-lxml==3.7.1
5
-ndg-httpsclient==0.4.2
6
-pyasn1==0.1.9
4
+lxml==3.7.3
5
+idna==2.5
7
 pygments==2.1.3
6
 pygments==2.1.3
8
 pyopenssl==16.2.0
7
 pyopenssl==16.2.0
9
-python-dateutil==2.5.3
10
-pyyaml==3.11
11
-requests[socks]==2.12.4
8
+python-dateutil==2.6.0
9
+pyyaml==3.12
10
+requests[socks]==2.13.0

+ 3
- 5
searx/webapp.py 查看文件

70
 from searx.preferences import Preferences, ValidationException
70
 from searx.preferences import Preferences, ValidationException
71
 from searx.answerers import answerers
71
 from searx.answerers import answerers
72
 
72
 
73
-# check if the pyopenssl, ndg-httpsclient, pyasn1 packages are installed.
74
-# They are needed for SSL connection without trouble, see #298
73
+# check if the pyopenssl package is installed.
74
+# It is needed for SSL connection without trouble, see #298
75
 try:
75
 try:
76
     import OpenSSL.SSL  # NOQA
76
     import OpenSSL.SSL  # NOQA
77
-    import ndg.httpsclient  # NOQA
78
-    import pyasn1  # NOQA
79
 except ImportError:
77
 except ImportError:
80
-    logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
78
+    logger.critical("The pyopenssl package has to be installed.\n"
81
                     "Some HTTPS connections will fail")
79
                     "Some HTTPS connections will fail")
82
 
80
 
83
 # serve pages with HTTP/1.1
81
 # serve pages with HTTP/1.1