Commits

Georg Brandl committed 82e931f

Cleanup unused imports.

  • Participants
  • Parent commits 09fa4e5

Comments (0)

Files changed (8)

File sphinx/application.py

 from sphinx.builders import BUILTIN_BUILDERS
 from sphinx.directives import GenericDesc, Target, additional_xref_types
 from sphinx.environment import SphinxStandaloneReader
-from sphinx.util import pycompat
+from sphinx.util import pycompat  # imported for side-effects
 from sphinx.util.tags import Tags
 from sphinx.util.compat import Directive, directive_dwim
 from sphinx.util.console import bold

File sphinx/builders/changes.py

 """
 
 import codecs
-import shutil
 from os import path
 from cgi import escape
 

File sphinx/environment.py

 from os import path
 from glob import glob
 from itertools import izip, groupby
-try:
-    from hashlib import md5
-except ImportError:
-    # 2.4 compatibility
-    from md5 import md5
 
 from docutils import nodes
 from docutils.io import FileInput, NullOutput

File sphinx/ext/autodoc.py

 import re
 import sys
 import inspect
-from types import ModuleType, FunctionType, BuiltinFunctionType, MethodType, \
-     ClassType
+from types import FunctionType, BuiltinFunctionType, MethodType, ClassType
 
 from docutils import nodes
 from docutils.utils import assemble_option_dict

File sphinx/ext/graphviz.py

     :license: BSD, see LICENSE for details.
 """
 
-import os
 import re
-import sys
 import posixpath
 from os import path
 from subprocess import Popen, PIPE

File sphinx/ext/inheritance_diagram.py

     :license: BSD, see LICENSE for details.
 """
 
-import os
 import re
 import sys
 import inspect
-import subprocess
 try:
     from hashlib import md5
 except ImportError:

File sphinx/jinja2glue.py

     :license: BSD, see LICENSE for details.
 """
 
-import codecs
 from os import path
 from pprint import pformat
 

File sphinx/search.py

 """
 import re
 import cPickle as pickle
-from cStringIO import StringIO
 
 from docutils.nodes import comment, Text, NodeVisitor, SkipNode