summaryrefslogtreecommitdiff
path: root/pygments/formatters/bbcode.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2009-03-31 10:26:55 -0500
committergbrandl <devnull@localhost>2009-03-31 10:26:55 -0500
commit7b95efab48d9ec79e995bf4d6db10fd049e3395a (patch)
tree48fc9b840dab83976a85af85d1c705dbaa051a0b /pygments/formatters/bbcode.py
parentf12c878ed096137c91658a0f62f0070e08c2afea (diff)
downloadpygments-7b95efab48d9ec79e995bf4d6db10fd049e3395a.tar.gz
Port Pygments to Python 3.1.
Diffstat (limited to 'pygments/formatters/bbcode.py')
-rw-r--r--pygments/formatters/bbcode.py5
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: