Conditional import of http_client for Python 3

As discussed in #7
This commit is contained in:
cclauss 2017-09-25 19:20:12 +02:00 committed by GitHub
parent 0b07d367e4
commit 9b4672e098

View file

@ -5,7 +5,10 @@ import time
import optparse
import subprocess
import random
import httplib as http_client
try:
import http.client as http_client # Python 3
except ImportError:
import httplib as http_client # Python 2
from var import blackwidow
from var.google_search import search