Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 14004:97ed99d1f419
eliminate various naked except clauses
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 23 Apr 2011 00:51:25 +0300 |
parents | 26335a817dd0 |
children | d764463b433e |
line wrap: on
line diff
--- a/mercurial/util.py Sun Apr 24 17:52:46 2011 -0500 +++ b/mercurial/util.py Sat Apr 23 00:51:25 2011 +0300 @@ -206,12 +206,12 @@ try: if inname: os.unlink(inname) - except: + except OSError: pass try: if outname: os.unlink(outname) - except: + except OSError: pass filtertable = { @@ -407,7 +407,7 @@ if os.path.islink(src): try: os.unlink(dest) - except: + except OSError: pass os.symlink(os.readlink(src), dest) else: @@ -556,7 +556,7 @@ if s2 == s1: return False return True - except: + except OSError: return True _fspathcache = {}