Browse Source

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`.
add-quote-import
Luke Murphy 6 years ago
parent
commit
5345aafcc0
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      etherdump/commands/pull.py

2
etherdump/commands/pull.py

@ -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

Loading…
Cancel
Save