Add missing quote import for Python 2.x

When running under Python 2.x, this import is missing and we get an
error when running anything with `etherdump pull`.
This commit is contained in:
Luke Murphy 2019-03-06 10:21:51 +01:00
parent 4a8219b48c
commit 5345aafcc0
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -6,7 +6,7 @@ from datetime import datetime
try:
# python2
from urllib2 import urlopen, URLError, HTTPError
from urllib import urlencode
from urllib import urlencode, quote
except ImportError:
# python3
from urllib.parse import urlencode, quote