diff MoinMoin/support/pygments/lexers/functional.py @ 5614:f76914e77229

upgrade pygments to 1.3.1
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 07 Mar 2010 21:36:31 +0100
parents 74fa6f714526
children 6446873d152f
line wrap: on
line diff
--- a/MoinMoin/support/pygments/lexers/functional.py	Sun Mar 07 20:59:26 2010 +0100
+++ b/MoinMoin/support/pygments/lexers/functional.py	Sun Mar 07 21:36:31 2010 +0100
@@ -10,10 +10,6 @@
 """
 
 import re
-try:
-    set
-except NameError:
-    from sets import Set as set
 
 from pygments.lexer import Lexer, RegexLexer, bygroups, include, do_insertions
 from pygments.token import Text, Comment, Operator, Keyword, Name, \
@@ -474,7 +470,7 @@
 
         style = self.options.get('litstyle')
         if style is None:
-            style = (text.lstrip()[0] in '%\\') and 'latex' or 'bird'
+            style = (text.lstrip()[0:1] in '%\\') and 'latex' or 'bird'
 
         code = ''
         insertions = []