mirror of
https://github.com/wassname/compleat.git
synced 2026-06-27 17:30:04 +08:00
Updated for python 3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from query import Query
|
||||
from .query import Query
|
||||
|
||||
VERSION = (0, 0, 2)
|
||||
__version__ = ".".join(map(str,VERSION))
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user