summaryrefslogtreecommitdiff
path: root/tests/support/python_lexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2017-01-22 19:57:19 +0100
committerGeorg Brandl <georg@python.org>2017-01-22 19:57:19 +0100
commit1f75c51afdbe281e0044ca5c5369e14fc5e0e8e1 (patch)
treec790ff3b447d5c41e2e50cdd5d18b0071772ee9b /tests/support/python_lexer.py
parent041b80fab1922800ae0618fd4d3d8d78bf7063b4 (diff)
downloadpygments-1f75c51afdbe281e0044ca5c5369e14fc5e0e8e1.tar.gz
-x functionality updates, Python 3 compatibility fix
Diffstat (limited to 'tests/support/python_lexer.py')
-rw-r--r--tests/support/python_lexer.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/support/python_lexer.py b/tests/support/python_lexer.py
index ad34d31b..565ee674 100644
--- a/tests/support/python_lexer.py
+++ b/tests/support/python_lexer.py
@@ -1,15 +1,12 @@
# -*- coding: utf-8 -*-
-"""
- pygments.lexers.python (as CustomLexer)
- ~~~~~~~~~~~~~~~~~~~~~~
-
- For test_cmdline.py
-"""
+# pygments.lexers.python (as CustomLexer) for test_cmdline.py
from pygments.lexers import PythonLexer
+
class CustomLexer(PythonLexer):
name = 'PythonLexerWrapper'
+
class LexerWrapper(CustomLexer):
- name="PythonLexerWrapperWrapper"
+ name = 'PythonLexerWrapperWrapper'