From 2fa7dbf0c648143df46df50c3b5bbaaaaaadcf0f Mon Sep 17 00:00:00 2001 From: Boris Verkhovskiy Date: Thu, 5 Dec 2024 01:08:45 -0700 Subject: [PATCH] Remove python3 alias --- readme_renderer/markdown.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/readme_renderer/markdown.py b/readme_renderer/markdown.py index 6e71a43..264c115 100644 --- a/readme_renderer/markdown.py +++ b/readme_renderer/markdown.py @@ -44,12 +44,6 @@ warnings.warn(_EXTRA_WARNING) variants = {} -# Make code fences with `python` as the language default to highlighting as -# Python 3. -_LANG_ALIASES = { - 'python': 'python3', -} - def render( raw: str, @@ -101,7 +95,6 @@ def _highlight(html: str) -> str: def replacer(match: Match[Any]) -> str: try: lang = match.group('lang') - lang = _LANG_ALIASES.get(lang, lang) lexer = pygments.lexers.get_lexer_by_name(lang) except ValueError: lexer = pygments.lexers.TextLexer()