Commits

Anonymous committed b8983a6

[svn] make check.

Comments (0)

Files changed (2)

pygments/lexers/compiled.py

         self.builtins = set()
         for unit in get_list_opt(options, 'units', self.BUILTIN_UNITS.keys()):
             self.builtins.update(self.BUILTIN_UNITS[unit])
-    
+
     def get_tokens_unprocessed(self, text):
         scanner = Scanner(text, re.DOTALL | re.MULTILINE | re.IGNORECASE)
         stack = ['initial']

scripts/vim2pygments.py

     colors = {'Normal': {}}
     bg_color = None
     def set(attrib, value):
-        if not token in colors:
+        if token not in colors:
             colors[token] = {}
         if key.startswith('gui') or attrib not in colors[token]:
             colors[token][attrib] = value