diff -r 3172da69ff37 -r 07d08c130892 mercurial/subrepo.py --- 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