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:
parent
4a8219b48c
commit
5345aafcc0
@ -6,7 +6,7 @@ from datetime import datetime
|
|||||||
try:
|
try:
|
||||||
# python2
|
# python2
|
||||||
from urllib2 import urlopen, URLError, HTTPError
|
from urllib2 import urlopen, URLError, HTTPError
|
||||||
from urllib import urlencode
|
from urllib import urlencode, quote
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# python3
|
# python3
|
||||||
from urllib.parse import urlencode, quote
|
from urllib.parse import urlencode, quote
|
||||||
|
Loading…
Reference in New Issue
Block a user