diff mercurial/util.py @ 9556:f0417b6ff98a

Merge with -stable
author Matt Mackall <mpm@selenic.com>
date Thu, 08 Oct 2009 00:59:46 -0500 (2009-10-08)
parents 8b8920209317 ba8a86d86fd6
children ceb0f59e1327
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1221,6 +1221,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