summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-22 17:14:27 (GMT)
committerGitHub <noreply@github.com>2022-06-22 17:14:27 (GMT)
commit47e35625ff2c4e6511a12e7178c3e4fbc965b634 (patch)
treee9a6b4d687233135f993260b12011613b9189058 /Doc/tools
parent8661c5053fbe3e246289d77e49a813470b3a16f7 (diff)
downloadcpython-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.py3
-rw-r--r--Doc/tools/extensions/peg_highlight.py2
-rw-r--r--Doc/tools/extensions/pyspecific.py1
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