georg.brandl  committed 45be326

Some pylint fixes.

  • Participants
  • Parent commits a6daea3
  • Branches default

Comments (0)

Files changed (8)

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

File sphinx/

 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/

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

File sphinx/ext/

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

File sphinx/

     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 import Style
     from pygments.styles import get_style_by_name
     from pygments.styles.friendly import FriendlyStyle

File sphinx/

 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/

     :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

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