summaryrefslogtreecommitdiff
path: root/pygments/lexers/math.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-18 13:25:15 +0100
committerGeorg Brandl <georg@python.org>2014-01-18 13:25:15 +0100
commita9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8 (patch)
treeface5db25ebef227315a0ae1080d4b2262f6fe23 /pygments/lexers/math.py
parente921fe0b430608cb7e0c89f7fada9260cb4822eb (diff)
downloadpygments-a9169c157a05c82a1b8a7ffb92e7f159fb4ca0f8.tar.gz
futurizing: move to print_function and "except X as Y" syntax
Diffstat (limited to 'pygments/lexers/math.py')
-rw-r--r--pygments/lexers/math.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/math.py b/pygments/lexers/math.py
index 93c7cbd6..9e123ece 100644
--- a/pygments/lexers/math.py
+++ b/pygments/lexers/math.py
@@ -8,6 +8,7 @@
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
+from __future__ import print_function
import re
@@ -431,7 +432,7 @@ class MatlabSessionLexer(Lexer):
yield match.start(), Generic.Output, line
- print insertions
+ print(insertions)
if curcode: # or item:
for item in do_insertions(
insertions, mlexer.get_tokens_unprocessed(curcode)):