diff options
author | gbrandl <devnull@localhost> | 2006-12-20 16:14:36 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2006-12-20 16:14:36 +0100 |
commit | 80ebade7c25cb6f79477debd55254c18862d3eff (patch) | |
tree | fc7971b4b69261806b23ddd68c22bd6b2d3f777e /pygments/formatters/terminal.py | |
parent | 59db12020433e4787555cfeccaeae65f872f59b6 (diff) | |
download | pygments-80ebade7c25cb6f79477debd55254c18862d3eff.tar.gz |
[svn] Some style nits and make check.
Diffstat (limited to 'pygments/formatters/terminal.py')
-rw-r--r-- | pygments/formatters/terminal.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/pygments/formatters/terminal.py b/pygments/formatters/terminal.py index fdfb6c2c..b0a134b8 100644 --- a/pygments/formatters/terminal.py +++ b/pygments/formatters/terminal.py @@ -67,17 +67,12 @@ class TerminalFormatter(Formatter): ``colorscheme`` ``None`` or a dictionary mapping token types to ``(lightbg, darkbg)`` color names. - - ``debug`` - If true, output "<<ERROR>>" after each error token. """ Formatter.__init__(self, **options) self.darkbg = options.get('bg', 'light') == 'dark' self.colorscheme = options.get('colorscheme', None) or TERMINAL_COLORS - self.debug = get_bool_opt(options, 'debug', False) def format(self, tokensource, outfile): - dbg = self.debug for ttype, value in tokensource: value = value.encode(self.encoding) color = self.colorscheme.get(ttype) @@ -95,5 +90,3 @@ class TerminalFormatter(Formatter): outfile.write(ansiformat(color, spl[-1])) else: outfile.write(value) - if dbg and ttype is Error: - outfile.write('<<ERROR>>') |