Skip to content

Commit 0999708

Browse files
test renamed imports
1 parent eb5e6d4 commit 0999708

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

hexonet/apiconnector/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from apiconnector.connection import Connection
2-
from apiconnector.response import Response
1+
from apiconnector import Connection
2+
from apiconnector import Response
33

44
__version__ = '1.2.0'
55
name = "apiconnector"

hexonet/apiconnector/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from six.moves.urllib import request
22
from six.moves import urlparse
3-
import apiconnector.util
4-
from apiconnector.response import Response
3+
import hexonet.apiconnector.util
4+
from hexonet.apiconnector import Response
55

66
"""
77
APICONNECTOR Connection
@@ -32,7 +32,7 @@ def call_raw_http(self, command, config=None):
3232
if ('role' in self._config):
3333
post['s_login'] = self._config['login'] + "!" + self._config['role']
3434

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

hexonet/apiconnector/response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import apiconnector.util
1+
import hexonet.apiconnector.util
22

33
"""
44
APICONNECTOR Response
@@ -41,15 +41,15 @@ def as_hash(self):
4141
Returns the response as a hash
4242
"""
4343
if self._response_hash is None:
44-
self._response_hash = apiconnector.util.response_to_hash(self._response_string)
44+
self._response_hash = hexonet.apiconnector.util.response_to_hash(self._response_string)
4545
return self._response_hash
4646

4747
def as_list_hash(self):
4848
"""
4949
Returns the response as a list hash
5050
"""
5151
if self._response_list_hash is None:
52-
self._response_list_hash = apiconnector.util.response_to_list_hash(self.as_hash())
52+
self._response_list_hash = hexonet.apiconnector.util.response_to_list_hash(self.as_hash())
5353
return self._response_list_hash
5454

5555
def as_list(self):

0 commit comments

Comments
 (0)