Updated for python 3

This commit is contained in:
2016-02-03 15:50:46 +08:00
parent 901b3095d4
commit 9aa18469b7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
from query import Query
from .query import Query
VERSION = (0, 0, 2)
__version__ = ".".join(map(str,VERSION))
+1 -1
View File
@@ -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)