diff --git a/contrib_bots/bots/converter/converter.py b/contrib_bots/bots/converter/converter.py index 9658d75..6b7fb40 100644 --- a/contrib_bots/bots/converter/converter.py +++ b/contrib_bots/bots/converter/converter.py @@ -8,7 +8,7 @@ import importlib import sys from math import log10, floor -import utils +from . import utils import re def is_float(value): diff --git a/contrib_bots/bots/converter/tests.py b/contrib_bots/bots/converter/tests.py index d7baf8a..e1506d0 100644 --- a/contrib_bots/bots/converter/tests.py +++ b/contrib_bots/bots/converter/tests.py @@ -1,4 +1,5 @@ -import converter +from __future__ import absolute_import +from . import converter def test(): for cmd, expected_response in sample_conversation(): diff --git a/contrib_bots/bots/encrypt/tests.py b/contrib_bots/bots/encrypt/tests.py index 6e9be11..0e1a3cd 100644 --- a/contrib_bots/bots/encrypt/tests.py +++ b/contrib_bots/bots/encrypt/tests.py @@ -1,4 +1,4 @@ -import encrypt_bot +from . import encrypt def test(): for cmd, expected_response in sample_conversation(): @@ -11,7 +11,7 @@ def test(): def send_message(self, params): self.output = params['content'] - handler = encrypt_bot.EncryptHandler() + handler = encrypt.EncryptHandler() client_dummy = ClientDummy() handler.handle_message(message, client_dummy, '') if client_dummy.output != expected_response: diff --git a/contrib_bots/bots/howdoi/howdoi.py b/contrib_bots/bots/howdoi/howdoi.py index 9672ca3..2d7921f 100644 --- a/contrib_bots/bots/howdoi/howdoi.py +++ b/contrib_bots/bots/howdoi/howdoi.py @@ -12,6 +12,8 @@ Note: required by `howdoi`. """ +from __future__ import absolute_import + import sys import logging from textwrap import fill