6 Base lexer classes. |
6 Base lexer classes. |
7 |
7 |
8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. |
8 :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. |
9 :license: BSD, see LICENSE for details. |
9 :license: BSD, see LICENSE for details. |
10 """ |
10 """ |
|
11 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
12 try: |
|
13 str = unicode |
|
14 except (NameError): |
|
15 pass |
|
16 |
11 import re, itertools |
17 import re, itertools |
12 |
18 |
13 from pygments.filter import apply_filters, Filter |
19 from pygments.filter import apply_filters, Filter |
14 from pygments.filters import get_filter_by_name |
20 from pygments.filters import get_filter_by_name |
15 from pygments.token import Error, Text, Other, _TokenType |
21 from pygments.token import Error, Text, Other, _TokenType |