Mercurial > public > mercurial-scm > hg-stable
diff mercurial/windows.py @ 14004:97ed99d1f419
eliminate various naked except clauses
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 23 Apr 2011 00:51:25 +0300 |
parents | 9c374cf76b7d |
children | e4bfb9c337f3 |
line wrap: on
line diff
--- a/mercurial/windows.py Sun Apr 24 17:52:46 2011 -0500 +++ b/mercurial/windows.py Sat Apr 23 00:51:25 2011 +0300 @@ -32,7 +32,8 @@ def close(self): try: self.fp.close() - except: pass + except IOError: + pass def write(self, s): try: @@ -243,7 +244,7 @@ if osutil.listdir(head): return os.rmdir(head) - except: + except (ValueError, OSError): break head, tail = os.path.split(head)