1. Georg Brandl
  2. sphinx


georg.brandl  committed 45be326

Some pylint fixes.

  • Participants
  • Parent commits a6daea3
  • Branches default

Comments (0)

Files changed (8)

File Makefile

View file
 	find . -name '*.rej' -exec rm -f {} +
-	@pylint --rcfile utils/pylintrc sphinx converter
+	@pylint --rcfile utils/pylintrc sphinx
 	@$(PYTHON) utils/reindent.py -r -B .

File sphinx/builder.py

View file
 from sphinx.latexwriter import LaTeXWriter
 from sphinx.environment import BuildEnvironment, NoUri
 from sphinx.highlighting import PygmentsBridge
-from sphinx.util.console import bold, purple, red, darkgreen
+from sphinx.util.console import bold, purple, darkgreen
 # side effect: registers roles and directives
 from sphinx import roles

File sphinx/ext/autodoc.py

View file
 from docutils.parsers.rst import directives
 from docutils.statemachine import ViewList
-from sphinx import addnodes
 from sphinx.util import rpartition

File sphinx/ext/coverage.py

View file
     :license: BSD.
-import os
 import re
 import glob
 import inspect

File sphinx/highlighting.py

View file
     from pygments.lexers import get_lexer_by_name
     from pygments.formatters import HtmlFormatter, LatexFormatter
     from pygments.filters import ErrorToken
-    from pygments.util import ClassNotFound
     from pygments.style import Style
     from pygments.styles import get_style_by_name
     from pygments.styles.friendly import FriendlyStyle

File sphinx/linkcheck.py

View file
 from docutils import nodes
 from sphinx.builder import Builder
-from sphinx.util.console import bold, purple, red, darkgreen
+from sphinx.util.console import purple, red, darkgreen
 # create an opener that will simulate a browser user-agent
 opener = build_opener()

File sphinx/quickstart.py

View file
     :license: BSD.
-import sys, os, time, shutil
+import sys, os, time
 from os import path
-from sphinx.util.console import darkgreen, purple, bold, red, nocolor
+from sphinx.util.console import purple, bold, red, nocolor

File utils/pylintrc

View file
 # Disable the message(s) with the given id(s).