diff options
author | Victor Stinner <vstinner@python.org> | 2022-06-22 17:14:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 17:14:27 (GMT) |
commit | 47e35625ff2c4e6511a12e7178c3e4fbc965b634 (patch) | |
tree | e9a6b4d687233135f993260b12011613b9189058 /Doc/tools | |
parent | 8661c5053fbe3e246289d77e49a813470b3a16f7 (diff) | |
download | cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.zip cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.gz cpython-47e35625ff2c4e6511a12e7178c3e4fbc965b634.tar.bz2 |
gh-84623: Remove unused imports (#94132)
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/extensions/asdl_highlight.py | 3 | ||||
-rw-r--r-- | Doc/tools/extensions/peg_highlight.py | 2 | ||||
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/Doc/tools/extensions/asdl_highlight.py b/Doc/tools/extensions/asdl_highlight.py index b1989e5..42863a4 100644 --- a/Doc/tools/extensions/asdl_highlight.py +++ b/Doc/tools/extensions/asdl_highlight.py @@ -1,4 +1,3 @@ -import os import sys from pathlib import Path @@ -6,7 +5,7 @@ CPYTHON_ROOT = Path(__file__).resolve().parent.parent.parent.parent sys.path.append(str(CPYTHON_ROOT / "Parser")) from pygments.lexer import RegexLexer, bygroups, include, words -from pygments.token import (Comment, Generic, Keyword, Name, Operator, +from pygments.token import (Comment, Keyword, Name, Operator, Punctuation, Text) from asdl import builtin_types diff --git a/Doc/tools/extensions/peg_highlight.py b/Doc/tools/extensions/peg_highlight.py index 27f54cd..4bdc2ee 100644 --- a/Doc/tools/extensions/peg_highlight.py +++ b/Doc/tools/extensions/peg_highlight.py @@ -1,5 +1,5 @@ from pygments.lexer import RegexLexer, bygroups, include -from pygments.token import Comment, Generic, Keyword, Name, Operator, Punctuation, Text +from pygments.token import Comment, Keyword, Name, Operator, Punctuation, Text from sphinx.highlighting import lexers diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index 68c1e1b..8ac0028 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -30,7 +30,6 @@ from sphinx.locale import translators from sphinx.util import status_iterator, logging from sphinx.util.nodes import split_explicit_title from sphinx.writers.text import TextWriter, TextTranslator -from sphinx.writers.latex import LaTeXTranslator try: from sphinx.domains.python import PyFunction, PyMethod |