summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-01-28 07:35:27 -0500
committerTim Graham <timograham@gmail.com>2015-02-06 08:16:28 -0500
commit0ed7d155635da9f79d4dd67e4889087d3673c6da (patch)
treecf5c59b563f01774f32e20b3af8cb24a387fdc4d /docs/_ext
parent388d986b8a6bb1363dab9f53ea435dff4dfe92cb (diff)
Sorted imports with isort; refs #23860.
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/applyxrefs.py2
-rw-r--r--docs/_ext/djangodocs.py7
-rw-r--r--docs/_ext/literals_to_xrefs.py2
3 files changed, 5 insertions, 6 deletions
diff --git a/docs/_ext/applyxrefs.py b/docs/_ext/applyxrefs.py
index 513c17d84e..2dbebde0a3 100644
--- a/docs/_ext/applyxrefs.py
+++ b/docs/_ext/applyxrefs.py
@@ -1,7 +1,7 @@
"""Adds xref targets to the top of files."""
-import sys
import os
+import sys
testing = False
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index af419fa953..38f11dfd98 100644
--- a/docs/_ext/djangodocs.py
+++ b/docs/_ext/djangodocs.py
@@ -7,13 +7,12 @@ import re
from docutils import nodes
from docutils.parsers.rst import directives
-
-from sphinx import addnodes, __version__ as sphinx_ver
+from sphinx import __version__ as sphinx_ver, addnodes
from sphinx.builders.html import StandaloneHTMLBuilder
-from sphinx.writers.html import SmartyPantsHTMLTranslator
-from sphinx.util.console import bold
from sphinx.util.compat import Directive
+from sphinx.util.console import bold
from sphinx.util.nodes import set_source_info
+from sphinx.writers.html import SmartyPantsHTMLTranslator
# RE for option descriptions without a '--' prefix
simple_option_desc_re = re.compile(
diff --git a/docs/_ext/literals_to_xrefs.py b/docs/_ext/literals_to_xrefs.py
index c3bd2628e8..7c3f16131f 100644
--- a/docs/_ext/literals_to_xrefs.py
+++ b/docs/_ext/literals_to_xrefs.py
@@ -4,8 +4,8 @@ with new-style references.
"""
import re
-import sys
import shelve
+import sys
refre = re.compile(r'``([^`\s]+?)``')