Group :: Development/Python3
RPM: python3-module-rql
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: fix-import-of-pygments.patch
Download
Download
diff --git a/rql/rql/pygments_ext.py b/rql/rql/pygments_ext.py
index 10e19bb..445412f 100644
--- a/rql/rql/pygments_ext.py
+++ b/rql/rql/pygments_ext.py
@@ -10,9 +10,10 @@
import re
-from pygments.lexer import RegexLexer, _mapping
+from pygments.lexer import RegexLexer
from pygments.token import Punctuation, \
Text, Operator, Keyword, Name, String, Number
+from pygments.lexers._mapping import LEXERS
__all__ = ['RqlLexer']
@@ -45,4 +46,4 @@ class RqlLexer(RegexLexer):
}
-_mapping.LEXERS['RqlLexer'] = ('rql.pygments_ext', 'RQL', ('rql',), ('*.rql',), ('text/x-rql',))
+LEXERS['RqlLexer'] = ('rql.pygments_ext', 'RQL', ('rql',), ('*.rql',), ('text/x-rql',))
--
2.24.1