mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
bugdown: Remove unused imports.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
4e21cc0152
commit
e12c433745
@@ -13,18 +13,16 @@ import re
|
|||||||
import regex
|
import regex
|
||||||
import os
|
import os
|
||||||
import html
|
import html
|
||||||
import platform
|
|
||||||
import time
|
import time
|
||||||
import functools
|
import functools
|
||||||
import ujson
|
import ujson
|
||||||
import xml.etree.cElementTree as etree
|
import xml.etree.cElementTree as etree
|
||||||
from xml.etree.cElementTree import Element, SubElement
|
from xml.etree.cElementTree import Element
|
||||||
|
|
||||||
from collections import deque, defaultdict
|
from collections import deque, defaultdict
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from django.core import mail
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db.models import Q
|
from django.db.models import Q
|
||||||
|
|
||||||
@@ -46,7 +44,6 @@ from zerver.models import (
|
|||||||
MAX_MESSAGE_LENGTH,
|
MAX_MESSAGE_LENGTH,
|
||||||
Message,
|
Message,
|
||||||
Realm,
|
Realm,
|
||||||
RealmFilter,
|
|
||||||
realm_filters_for_realm,
|
realm_filters_for_realm,
|
||||||
UserProfile,
|
UserProfile,
|
||||||
UserGroup,
|
UserGroup,
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import re
|
import re
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import json
|
import json
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
|
|||||||
@@ -77,12 +77,11 @@ Dependencies:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import subprocess
|
|
||||||
import markdown
|
import markdown
|
||||||
from django.utils.html import escape
|
from django.utils.html import escape
|
||||||
from markdown.extensions.codehilite import CodeHilite, CodeHiliteExtension
|
from markdown.extensions.codehilite import CodeHilite, CodeHiliteExtension
|
||||||
from zerver.lib.tex import render_tex
|
from zerver.lib.tex import render_tex
|
||||||
from typing import Any, Dict, Iterable, List, MutableSequence, Optional, Tuple, Union
|
from typing import Any, Dict, Iterable, List, MutableSequence
|
||||||
|
|
||||||
# Global vars
|
# Global vars
|
||||||
FENCE_RE = re.compile("""
|
FENCE_RE = re.compile("""
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
import markdown
|
import markdown
|
||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List
|
||||||
from typing.re import Match
|
from typing.re import Match
|
||||||
from markdown.preprocessors import Preprocessor
|
from markdown.preprocessors import Preprocessor
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
import markdown
|
import markdown
|
||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List, Optional
|
||||||
from typing.re import Match
|
from typing.re import Match
|
||||||
from markdown.preprocessors import Preprocessor
|
from markdown.preprocessors import Preprocessor
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
import markdown
|
import markdown
|
||||||
from typing import Any, Dict, List, Optional, Union
|
from typing import Any, Dict, List, Optional
|
||||||
from typing.re import Match
|
from typing.re import Match
|
||||||
from markdown.preprocessors import Preprocessor
|
from markdown.preprocessors import Preprocessor
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
from typing import Any, Dict, Optional, List
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
import markdown
|
import markdown
|
||||||
from markdown_include.include import MarkdownInclude, IncludePreprocessor
|
from markdown_include.include import MarkdownInclude, IncludePreprocessor
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from markdown.extensions import Extension
|
from markdown.extensions import Extension
|
||||||
from markdown.treeprocessors import Treeprocessor
|
|
||||||
from typing import Any, Dict, Optional, List, Tuple
|
from typing import Any, Dict, Optional, List, Tuple
|
||||||
import markdown
|
import markdown
|
||||||
from xml.etree.cElementTree import Element
|
from xml.etree.cElementTree import Element
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import re
|
|||||||
|
|
||||||
from markdown.extensions import Extension
|
from markdown.extensions import Extension
|
||||||
from markdown.preprocessors import Preprocessor
|
from markdown.preprocessors import Preprocessor
|
||||||
from typing import Any, Dict, Optional, List, Tuple
|
from typing import Any, Dict, Optional, List
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
START_TABBED_SECTION_REGEX = re.compile(r'^\{start_tabs\}$')
|
START_TABBED_SECTION_REGEX = re.compile(r'^\{start_tabs\}$')
|
||||||
|
|||||||
Reference in New Issue
Block a user