diff --git a/zulip_bots/zulip_bots/run.py b/zulip_bots/zulip_bots/run.py index 4b7c1bd..4eb9b66 100755 --- a/zulip_bots/zulip_bots/run.py +++ b/zulip_bots/zulip_bots/run.py @@ -1,13 +1,9 @@ #!/usr/bin/env python3 -from __future__ import print_function -from __future__ import absolute_import import logging import argparse import sys import os -from types import ModuleType -from importlib import import_module from os.path import basename, splitext if False: diff --git a/zulip_bots/zulip_bots/test_run.py b/zulip_bots/zulip_bots/test_run.py index e242687..e67f131 100644 --- a/zulip_bots/zulip_bots/test_run.py +++ b/zulip_bots/zulip_bots/test_run.py @@ -1,15 +1,9 @@ #!/usr/bin/env python3 -from __future__ import absolute_import - -import importlib import os import sys import zulip_bots.run from zulip_bots.lib import extract_query_without_mention import unittest -import zulip - -from importlib import import_module from typing import Optional from unittest import TestCase diff --git a/zulip_botserver/setup.py b/zulip_botserver/setup.py index 78c4b7f..f020d81 100644 --- a/zulip_botserver/setup.py +++ b/zulip_botserver/setup.py @@ -3,7 +3,6 @@ from __future__ import print_function -import os import sys if False: from typing import Any, Dict, Optional diff --git a/zulip_botserver/tests/server_test_lib.py b/zulip_botserver/tests/server_test_lib.py index 19d82c9..f9fee55 100644 --- a/zulip_botserver/tests/server_test_lib.py +++ b/zulip_botserver/tests/server_test_lib.py @@ -1,8 +1,7 @@ import json -from typing import Any, List, Dict, Optional, Union +from typing import Any, List, Dict, Optional from unittest import TestCase -from werkzeug.exceptions import BadRequest from zulip_botserver import server