Skip to content

Commit

Permalink
fix six import path
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jul 9, 2018
1 parent 9e775a8 commit a9ec1a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hexonet/apiconnector/__init__.py
@@ -1,7 +1,7 @@
from hexonet.apiconnector.connection import Connection
from hexonet.apiconnector.response import Response

__version__ = '1.2.4'
__version__ = '1.2.5'
name = "hexonet.apiconnector"


Expand Down
6 changes: 3 additions & 3 deletions hexonet/apiconnector/util.py
@@ -1,7 +1,7 @@
import re
import time
import base64
from six.moves import urlparse
from six.moves.urllib.parse import quote, unquote
from datetime import datetime


Expand Down Expand Up @@ -166,14 +166,14 @@ def url_encode(string):
This function is convenient when encoding a string to be used in a query
part of a URL
"""
return urlparse.quote(string)
return quote(string)


def url_decode(string):
"""
Decodes URL-encoded string Decodes any %## encoding in the given string.
"""
return urlparse.unquote(string)
return unquote(string)


def base64_encode(string):
Expand Down

0 comments on commit a9ec1a1

Please sign in to comment.