changeset 14004 | 97ed99d1f419 |
parent 13986 | 9c374cf76b7d |
child 14064 | e4bfb9c337f3 |
--- 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)