summaryrefslogtreecommitdiff
path: root/pygments/formatters/other.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 13:55:34 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 13:55:34 +0100
commit0b03ce73a68bc794d4891b3cbbc581c7ccf3e03a (patch)
tree974acd81bf20d7ee04f66b07dd368cc5cd563ddc /pygments/formatters/other.py
parent81404c17958310b626cfa335a6ba22b261b317f4 (diff)
parentbc227d88fb35c7487c7425a4f2461ac364fc7d06 (diff)
downloadpygments-0b03ce73a68bc794d4891b3cbbc581c7ccf3e03a.tar.gz
Merged in pyos/pygments-main (pull request #116: Add dg source code 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)