diff options
author | gbrandl <devnull@localhost> | 2009-03-31 10:26:55 -0500 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2009-03-31 10:26:55 -0500 |
commit | 7b95efab48d9ec79e995bf4d6db10fd049e3395a (patch) | |
tree | 48fc9b840dab83976a85af85d1c705dbaa051a0b /pygments/formatters/bbcode.py | |
parent | f12c878ed096137c91658a0f62f0070e08c2afea (diff) | |
download | pygments-7b95efab48d9ec79e995bf4d6db10fd049e3395a.tar.gz |
Port Pygments to Python 3.1.
Diffstat (limited to 'pygments/formatters/bbcode.py')
-rw-r--r-- | pygments/formatters/bbcode.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pygments/formatters/bbcode.py b/pygments/formatters/bbcode.py index 384339fc..0bdae2de 100644 --- a/pygments/formatters/bbcode.py +++ b/pygments/formatters/bbcode.py @@ -76,19 +76,16 @@ class BBCodeFormatter(Formatter): self.styles[ttype] = start, end - def format(self, tokensource, outfile): + def format_unencoded(self, tokensource, outfile): if self._code: outfile.write('[code]') if self._mono: outfile.write('[font=monospace]') - enc = self.encoding lastval = '' lasttype = None for ttype, value in tokensource: - if enc: - value = value.encode(enc) while ttype not in self.styles: ttype = ttype.parent if ttype == lasttype: |