diff options
Diffstat (limited to 'pygments/util.py')
-rw-r--r-- | pygments/util.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pygments/util.py b/pygments/util.py index 3a1c0947..6f0c4148 100644 --- a/pygments/util.py +++ b/pygments/util.py @@ -276,6 +276,18 @@ def format_lines(var_name, seq, raw=False, indent_level=0): lines.append(base_indent + ')') return '\n'.join(lines) + +class Future(object): + """ + Generic class to defer some work. + + Handled specially in RegexLexerMeta, to support regex string construction at + first use. + """ + def get(self): + raise NotImplementedError + + # Python 2/3 compatibility if sys.version_info < (3, 0): |