Skip to content

Commit

Permalink
bugdown: Remove unused imports.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk authored and timabbott committed Feb 3, 2019
1 parent 4e21cc0 commit e12c433
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 14 deletions.
5 changes: 1 addition & 4 deletions zerver/lib/bugdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@
import regex
import os
import html
import platform
import time
import functools
import ujson
import xml.etree.cElementTree as etree
from xml.etree.cElementTree import Element, SubElement
from xml.etree.cElementTree import Element

from collections import deque, defaultdict

import requests

from django.core import mail
from django.conf import settings
from django.db.models import Q

Expand All @@ -46,7 +44,6 @@
MAX_MESSAGE_LENGTH,
Message,
Realm,
RealmFilter,
realm_filters_for_realm,
UserProfile,
UserGroup,
Expand Down
2 changes: 0 additions & 2 deletions zerver/lib/bugdown/api_code_examples.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import re
import os
import sys
import json
import inspect

Expand Down
3 changes: 1 addition & 2 deletions zerver/lib/bugdown/fenced_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@
"""

import re
import subprocess
import markdown
from django.utils.html import escape
from markdown.extensions.codehilite import CodeHilite, CodeHiliteExtension
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
FENCE_RE = re.compile("""
Expand Down
2 changes: 1 addition & 1 deletion zerver/lib/bugdown/help_emoticon_translations_table.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
import markdown
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List
from typing.re import Match
from markdown.preprocessors import Preprocessor

Expand Down
2 changes: 1 addition & 1 deletion zerver/lib/bugdown/help_relative_links.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
import markdown
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional
from typing.re import Match
from markdown.preprocessors import Preprocessor

Expand Down
2 changes: 1 addition & 1 deletion zerver/lib/bugdown/help_settings_links.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
import markdown
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional
from typing.re import Match
from markdown.preprocessors import Preprocessor

Expand Down
2 changes: 1 addition & 1 deletion zerver/lib/bugdown/include.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import print_function
import re
import os
from typing import Any, Dict, Optional, List
from typing import Any, Dict, List

import markdown
from markdown_include.include import MarkdownInclude, IncludePreprocessor
Expand Down
1 change: 0 additions & 1 deletion zerver/lib/bugdown/nested_code_blocks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from markdown.extensions import Extension
from markdown.treeprocessors import Treeprocessor
from typing import Any, Dict, Optional, List, Tuple
import markdown
from xml.etree.cElementTree import Element
Expand Down
2 changes: 1 addition & 1 deletion zerver/lib/bugdown/tabbed_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from markdown.extensions import Extension
from markdown.preprocessors import Preprocessor
from typing import Any, Dict, Optional, List, Tuple
from typing import Any, Dict, Optional, List
import markdown

START_TABBED_SECTION_REGEX = re.compile(r'^\{start_tabs\}$')
Expand Down

0 comments on commit e12c433

Please sign in to comment.