changeset 9524:effa05849027

Fix for issue1848
author Matt Mackall <mpm@selenic.com>
date Sat, 03 Oct 2009 15:57:48 -0500
parents e3ce0c30798b
children ba8a86d86fd6
files mercurial/util.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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