changeset 25660 | 328739ea70c3 |
parent 25624 | f0745da75056 |
child 25966 | f14cea32e1d4 |
--- a/mercurial/phases.py Tue Jun 23 22:38:21 2015 -0700 +++ b/mercurial/phases.py Tue Jun 23 22:20:08 2015 -0700 @@ -129,7 +129,7 @@ if 'HG_PENDING' in os.environ: try: f = repo.svfs('phaseroots.pending') - except IOError, inst: + except IOError as inst: if inst.errno != errno.ENOENT: raise if f is None: @@ -140,7 +140,7 @@ roots[int(phase)].add(bin(nh)) finally: f.close() - except IOError, inst: + except IOError as inst: if inst.errno != errno.ENOENT: raise if phasedefaults: