From ce95f9f4d54f90760ba30b8f4f2a34285d1270fe Mon Sep 17 00:00:00 2001 From: dkvasov Date: Wed, 16 May 2018 19:06:36 +0300 Subject: [PATCH] zulip_bots and zulip_botserver: Remove unused imports. --- zulip_bots/zulip_bots/run.py | 4 ---- zulip_bots/zulip_bots/test_run.py | 6 ------ zulip_botserver/setup.py | 1 - zulip_botserver/tests/server_test_lib.py | 3 +-- 4 files changed, 1 insertion(+), 13 deletions(-) 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