diff options
author | Georg Brandl <georg@python.org> | 2012-02-04 10:49:13 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-02-04 10:49:13 +0100 |
commit | 7cef32ec183e53298e76304b965f1ea2c5f3577c (patch) | |
tree | 28cec35ab3f3bcf2eb8def50c49d6610356297be /pygments/util.py | |
parent | d541282daa49002937f56da77ac5bb3a4b4f15c3 (diff) | |
parent | 2c1a1ade8db7b432ff2b5c42cb40f7a898c05f5d (diff) | |
download | pygments-7cef32ec183e53298e76304b965f1ea2c5f3577c.tar.gz |
Merge and fix ECL lexer.
Diffstat (limited to 'pygments/util.py')
-rw-r--r-- | pygments/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/util.py b/pygments/util.py index 429e40a1..a400624b 100644 --- a/pygments/util.py +++ b/pygments/util.py @@ -118,7 +118,7 @@ def make_analysator(f): return 0.0 try: return min(1.0, max(0.0, float(rv))) - except ValueError: + except (ValueError, TypeError): return 0.0 text_analyse.__doc__ = f.__doc__ return staticmethod(text_analyse) |