contrib_bots: Fix python 3 lint errors.
MODIFY
contrib_bots/bots/converter/converter.py
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):

MODIFY
contrib_bots/bots/converter/tests.py
contrib_bots/bots/converter/tests.py
-import converter
+from __future__ import absolute_import
+from . import converter
def test():
for cmd, expected_response in sample_conversation():

MODIFY
contrib_bots/bots/encrypt/tests.py
contrib_bots/bots/encrypt/tests.py
-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:

MODIFY
contrib_bots/bots/howdoi/howdoi.py
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

contrib_bots: Fix python 3 lint errors.