From 16c3a0cdcefed2d7f5a2488765735fcafc7905b0 Mon Sep 17 00:00:00 2001 From: Nicolas Jouanin Date: Sat, 30 May 2015 13:58:29 +0200 Subject: [PATCH] Move utils --- hbmqtt/{ => codecs}/utils.py | 2 +- tests/{ => codecs}/test_utils.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename hbmqtt/{ => codecs}/utils.py (94%) rename tests/{ => codecs}/test_utils.py (88%) diff --git a/hbmqtt/utils.py b/hbmqtt/codecs/utils.py similarity index 94% rename from hbmqtt/utils.py rename to hbmqtt/codecs/utils.py index 3262136..f44c645 100644 --- a/hbmqtt/utils.py +++ b/hbmqtt/codecs/utils.py @@ -2,7 +2,7 @@ # # See the file license.txt for copying permission. import asyncio -from hbmqtt.streams.errors import NoDataException +from hbmqtt.codecs.errors import NoDataException def bytes_to_hex_str(data): """ diff --git a/tests/test_utils.py b/tests/codecs/test_utils.py similarity index 88% rename from tests/test_utils.py rename to tests/codecs/test_utils.py index 4a38929..5b8e0fd 100644 --- a/tests/test_utils.py +++ b/tests/codecs/test_utils.py @@ -3,12 +3,13 @@ # See the file license.txt for copying permission. import unittest import asyncio -from hbmqtt.utils import ( + +from hbmqtt.codecs.utils import ( bytes_to_hex_str, bytes_to_int, read_string, ) -from hbmqtt.message import MessageType + class TestUtils(unittest.TestCase): def setUp(self):