diff --git a/src/calibre/gui2/store/stores/amazon_es_plugin.py b/src/calibre/gui2/store/stores/amazon_es_plugin.py index e8726f7c9c..68cc556042 100644 --- a/src/calibre/gui2/store/stores/amazon_es_plugin.py +++ b/src/calibre/gui2/store/stores/amazon_es_plugin.py @@ -10,7 +10,7 @@ from contextlib import closing try: from urllib.parse import urlencode except ImportError: - from urllib2 import urlencode + from urllib import urlencode from lxml import html diff --git a/src/calibre/gui2/store/stores/weightless_books_plugin.py b/src/calibre/gui2/store/stores/weightless_books_plugin.py index 407dccc3fe..21a0b7cbf0 100644 --- a/src/calibre/gui2/store/stores/weightless_books_plugin.py +++ b/src/calibre/gui2/store/stores/weightless_books_plugin.py @@ -11,7 +11,7 @@ from contextlib import closing try: from urllib.parse import quote_plus except ImportError: - from urllib2 import quote_plus + from urllib import quote_plus from lxml import html