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
commit9ca765ccb0597781159a4df6a43b25eb8f8125c5 (patch)
tree2fc76e355f69660ca9a7fdc0122562be12bdf4ba /tests/support/python_lexer.py
parent3a1d729f6bf94ff5d0233edf094b8afc434c48c8 (diff)
downloadpygments-git-9ca765ccb0597781159a4df6a43b25eb8f8125c5.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'