Mercurial > hg
diff mercurial/subrepo.py @ 13160:07d08c130892
check-code: catch "except as"
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 16 Dec 2010 14:50:36 -0600 |
parents | f02d7a562a21 |
children | 84cec5895d01 |
line wrap: on
line diff
--- a/mercurial/subrepo.py Thu Dec 16 14:50:27 2010 -0600 +++ b/mercurial/subrepo.py Thu Dec 16 14:50:36 2010 -0600 @@ -21,7 +21,7 @@ for l in ctx['.hgsubstate'].data().splitlines(): revision, path = l.split(" ", 1) rev[path] = revision - except IOError as err: + except IOError, err: if err.errno != errno.ENOENT: raise return rev