Merge pull request #11 from cclauss/patch-1

Conditional import of http_client for Python 3
This commit is contained in:
Thomas Perkins 2017-09-25 12:24:42 -05:00 committed by GitHub
commit f471f7b217

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