--- a/mercurial/util.py Fri Aug 07 01:15:16 2009 +0200 +++ b/mercurial/util.py Sat Oct 03 15:57:48 2009 -0500 @@ -1270,6 +1270,11 @@ return array.array('h', arri)[1] except ValueError: pass + except IOError, e: + if e[0] == errno.EINVAL: + pass + else: + raise except ImportError: pass return 80