# HG changeset patch # User Matt Mackall # Date 2009-10-08 05:59:46 # Node ID f0417b6ff98a995a15cecea6c39d50ebfafb94a0 # Parent 3e698434b990df03e7915c5c5ebf9925fa39d34b # Parent e151b66bcf38b9ec5682ddd4cfda6b687c8f3c66 Merge with -stable diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1221,6 +1221,11 @@ def termwidth(): 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