Change the fix for the Pygments issue slightly.

Sun, 06 Feb 2011 18:42:06 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 06 Feb 2011 18:42:06 +0100
changeset 885
e997d2f41dea
parent 883
ac0c6a9ab656
child 887
ccc601bc1faf

Change the fix for the Pygments issue slightly.

ThirdParty/Pygments/pygments/util.py file | annotate | diff | comparison | revisions
--- a/ThirdParty/Pygments/pygments/util.py	Sun Feb 06 15:45:46 2011 +0100
+++ b/ThirdParty/Pygments/pygments/util.py	Sun Feb 06 18:42:06 2011 +0100
@@ -118,9 +118,7 @@
             return 0.0
         try:
             return min(1.0, max(0.0, float(rv)))
-        except ValueError:
-            return 0.0
-        except TypeError:
+        except (ValueError, TypeError):
             return 0.0
     text_analyse.__doc__ = f.__doc__
     return staticmethod(text_analyse)

eric ide

mercurial