From e634e3276af7e2c5739a1d9a580cbf5f886b0dd2 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 4 Dec 2022 11:51:44 -0800 Subject: [PATCH] ruff: Fix PLC0414 Import alias does not rename original package. Signed-off-by: Anders Kaseorg --- zerver/actions/message_delete.py | 2 +- zerver/lib/markdown/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/actions/message_delete.py b/zerver/actions/message_delete.py index 18babe437f..6e62b2ede0 100644 --- a/zerver/actions/message_delete.py +++ b/zerver/actions/message_delete.py @@ -2,7 +2,7 @@ from typing import Iterable, List, TypedDict from django.db import transaction -from zerver.lib import retention as retention +from zerver.lib import retention from zerver.lib.retention import move_messages_to_archive from zerver.lib.stream_subscription import get_active_subscriptions_for_stream_id from zerver.models import Message, Realm, UserMessage, UserProfile diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py index 97ff461160..2340bf29fd 100644 --- a/zerver/lib/markdown/__init__.py +++ b/zerver/lib/markdown/__init__.py @@ -46,7 +46,7 @@ from markdown.extensions import codehilite, nl2br, sane_lists, tables from soupsieve import escape as css_escape from tlds import tld_set -from zerver.lib import mention as mention +from zerver.lib import mention from zerver.lib.cache import cache_with_key from zerver.lib.camo import get_camo_url from zerver.lib.emoji import EMOTICON_RE, codepoint_to_name, name_to_codepoint, translate_emoticons