Skip to content

Commit 758151e

Browse files
committed
Updates to test tools.
1 parent 5bd84f5 commit 758151e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ certifi==14.05.14
1010
cffi==0.8.6
1111
cryptography==0.7.2
1212
cssselect==0.9.1
13-
dirbot==1.0
1413
django-debug-toolbar==1.2.2
1514
django-haystack==2.3.1
1615
enum34==1.0.4

tools/test_hidden_services.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import socket
66
import urllib2
77
from urllib2 import Request
8+
import requests
89

910
import simplejson
1011
import socks
@@ -147,7 +148,7 @@ def get2txt(url):
147148
"""Read from URL."""
148149
txt = ""
149150
try:
150-
txt = urllib2.urlopen(url).read()
151+
txt = requests.get(url, verify=False).text
151152
return txt
152153
except urllib2.HTTPError as error:
153154
print error

0 commit comments

Comments
 (0)