Fix for issue1848
authorMatt Mackall <mpm@selenic.com>
Sat, 03 Oct 2009 15:57:48 -0500
changeset 9524 effa05849027
parent 9521 e3ce0c30798b
child 9530 ba8a86d86fd6
Fix for issue1848
mercurial/util.py
--- 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