diff options
author | Paul Moore <p.f.moore@gmail.com> | 2023-04-02 14:53:28 +0100 |
---|---|---|
committer | Paul Moore <p.f.moore@gmail.com> | 2023-04-02 14:53:28 +0100 |
commit | c0ba81850b5ee6ac99bc999370a76928a026b977 (patch) | |
tree | 3c2bad9c7f0dea2603e5bbb6efbc1e80f85e9056 /tools | |
parent | d2852d0ad2261880b25f7b137ae89c8e5bbeae65 (diff) | |
download | pip-c0ba81850b5ee6ac99bc999370a76928a026b977.tar.gz |
Upgrade pygments to 2.14.0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/vendoring/patches/pygments.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/vendoring/patches/pygments.patch b/tools/vendoring/patches/pygments.patch index 3cabf9d6d..035c7dcae 100644 --- a/tools/vendoring/patches/pygments.patch +++ b/tools/vendoring/patches/pygments.patch @@ -35,3 +35,25 @@ index c6e2517df..76255b525 100644 + sys.exit(main(sys.argv)) except KeyboardInterrupt: sys.exit(1) +diff --git a/src/pip/_vendor/pygments/sphinxext.py b/src/pip/_vendor/pygments/sphinxext.py +index 3ea2e36e1..23c19504c 100644 +--- a/src/pip/_vendor/pygments/sphinxext.py ++++ b/src/pip/_vendor/pygments/sphinxext.py +@@ -91,7 +91,7 @@ class PygmentsDoc(Directive): + The columns are the lexer name, the extensions handled by this lexer + (or "None"), the aliases and a link to the lexer class.""" + from pygments.lexers._mapping import LEXERS +- import pygments.lexers ++ from pygments.lexers import find_lexer_class + out = [] + + table = [] +@@ -102,7 +102,7 @@ class PygmentsDoc(Directive): + return name + + for classname, data in sorted(LEXERS.items(), key=lambda x: x[1][1].lower()): +- lexer_cls = pygments.lexers.find_lexer_class(data[1]) ++ lexer_cls = find_lexer_class(data[1]) + extensions = lexer_cls.filenames + lexer_cls.alias_filenames + + table.append({ |