From 9aa18469b770ebcf3cb6885bd1fa86f9745f2ba3 Mon Sep 17 00:00:00 2001 From: Is Isilon Date: Wed, 3 Feb 2016 15:50:46 +0800 Subject: [PATCH] Updated for python 3 --- compleat/__init__.py | 2 +- compleat/query.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compleat/__init__.py b/compleat/__init__.py index b2f9773..1711db8 100644 --- a/compleat/__init__.py +++ b/compleat/__init__.py @@ -1,4 +1,4 @@ -from query import Query +from .query import Query VERSION = (0, 0, 2) __version__ = ".".join(map(str,VERSION)) diff --git a/compleat/query.py b/compleat/query.py index ee92556..36891ea 100644 --- a/compleat/query.py +++ b/compleat/query.py @@ -18,7 +18,7 @@ class Query(object): @property def url(self): encoded = self.query.encode("utf-8") - escaped = urllib.quote(encoded) + escaped = urllib.parse.quote(encoded) return self.URL_TEMPLATE.format( query=escaped, lang=self.lang)