Compare commits

...

1 Commits

Author SHA1 Message Date
5345aafcc0
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`.
2019-03-06 10:21:51 +01:00

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