ThirdParty/Pygments/pygments/__init__.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 684
2f29a0b6e1c7
--- a/ThirdParty/Pygments/pygments/__init__.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/ThirdParty/Pygments/pygments/__init__.py	Sat Jan 02 15:11:35 2010 +0000
@@ -25,7 +25,7 @@
     :license: BSD, see LICENSE for details.
 """
 
-__version__ = '1.1'
+__version__ = '1.1.1'
 __docformat__ = 'restructuredtext'
 
 __all__ = ['lex', 'format', 'highlight']
@@ -42,7 +42,7 @@
     """
     try:
         return lexer.get_tokens(code)
-    except TypeError, err:
+    except TypeError as err:
         if isinstance(err.args[0], str) and \
            'unbound method get_tokens' in err.args[0]:
             raise TypeError('lex() argument must be a lexer instance, '
@@ -66,7 +66,7 @@
             return realoutfile.getvalue()
         else:
             formatter.format(tokens, outfile)
-    except TypeError, err:
+    except TypeError as err:
         if isinstance(err.args[0], str) and \
            'unbound method format' in err.args[0]:
             raise TypeError('format() argument must be a formatter instance, '

eric ide

mercurial