python: Remove locally dead code.

These changes are all independent of each other; I just didn’t feel
like making dozens of commits for them.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-08-13 16:01:37 -07:00
committed by Tim Abbott
parent 9afe6d0829
commit 4206e5f00b
35 changed files with 13 additions and 338 deletions

View File

@@ -1,10 +1,10 @@
import importlib
import json
import os
from typing import Any, Callable, Dict, Optional
from django.conf import settings
from django.utils.translation import gettext as _
from zulip_bots.lib import BotIdentity, RateLimit
from zerver.lib.actions import (
internal_send_huddle_message,
@@ -22,10 +22,6 @@ from zerver.lib.integrations import EMBEDDED_BOTS
from zerver.lib.topic import get_topic_from_message_info
from zerver.models import UserProfile, get_active_user
our_dir = os.path.dirname(os.path.abspath(__file__))
from zulip_bots.lib import BotIdentity, RateLimit
def get_bot_handler(service_name: str) -> Any: