summaryrefslogtreecommitdiff
path: root/pygments/formatters/other.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 15:17:02 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 15:17:02 +0100
commit1f5bc0f3209f8f62a11a9b1181f22180e8916d25 (patch)
treec031ad54a2f53dd96bda68f5eb6c12a183344ed4 /pygments/formatters/other.py
parenteaca2a8debdcbb647175ba796cfd24f9c1faef34 (diff)
parent9cc134d20b8505b6d472cca6872406dbecf5fda3 (diff)
downloadpygments-1f5bc0f3209f8f62a11a9b1181f22180e8916d25.tar.gz
Merged in fengxx/pygments-dev/v1.6 (pull request #122: Add AutoIt script lexer)
Diffstat (limited to 'pygments/formatters/other.py')
-rw-r--r--pygments/formatters/other.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pygments/formatters/other.py b/pygments/formatters/other.py
index a19e4ce0..1029a7a7 100644
--- a/pygments/formatters/other.py
+++ b/pygments/formatters/other.py
@@ -5,7 +5,7 @@
Other formatters: NullFormatter, RawTokenFormatter.
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -102,8 +102,6 @@ class RawTokenFormatter(Formatter):
outfile.write(text.encode())
flush = outfile.flush
- lasttype = None
- lastval = u''
if self.error_color:
for ttype, value in tokensource:
line = "%s\t%r\n" % (ttype, value)