File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from hexonet .apiconnector .connection import Connection
22from hexonet .apiconnector .response import Response
33
4- __version__ = '1.2.4 '
4+ __version__ = '1.2.5 '
55name = "hexonet.apiconnector"
66
77
Original file line number Diff line number Diff line change 11import re
22import time
33import base64
4- from six .moves import urlparse
4+ from six .moves . urllib . parse import quote , unquote
55from datetime import datetime
66
77
@@ -166,14 +166,14 @@ def url_encode(string):
166166 This function is convenient when encoding a string to be used in a query
167167 part of a URL
168168 """
169- return urlparse . quote (string )
169+ return quote (string )
170170
171171
172172def url_decode (string ):
173173 """
174174 Decodes URL-encoded string Decodes any %## encoding in the given string.
175175 """
176- return urlparse . unquote (string )
176+ return unquote (string )
177177
178178
179179def base64_encode (string ):
You can’t perform that action at this time.
0 commit comments