Skip to content

Commit

Permalink
fix six import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jul 9, 2018
1 parent c5601be commit e304262
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hexonet/apiconnector/connection.py
@@ -1,5 +1,5 @@
from six.moves.urllib import request
from six.moves import urlparse
from six.moves.urllib.request import urlopen
from six.moves.urllib.parse import urlparse, urlencode
import hexonet.apiconnector.util
from hexonet.apiconnector.response import Response

Expand Down Expand Up @@ -33,8 +33,8 @@ def call_raw_http(self, command, config=None):
post['s_login'] = self._config['login'] + "!" + self._config['role']

post['s_command'] = hexonet.apiconnector.util.command_encode(command)
post = urlparse.urlencode(post)
response = request.urlopen(self._config['url'], post.encode('UTF-8'))
post = urlencode(post)
response = urlopen(self._config['url'], post.encode('UTF-8'))
content = response.read()
return content

Expand Down

0 comments on commit e304262

Please sign in to comment.