Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37872084
en ru br
ALT Linux repos
S:0.36.0-alt1

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


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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin