/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-19 21:33:07 UTC
  • Revision ID: jelmer@jelmer.uk-20181119213307-k5uhm4776q3mwr52
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
        format = HgControlDirFormat()
148
148
        try:
149
149
            format.open(transport)
150
 
        except hg_errors.RepoError, e:
 
150
        except hg_errors.RepoError as e:
151
151
            raise errors.NotBranchError(path=transport.base)
152
 
        except hg_errors.Abort, e:
 
152
        except hg_errors.Abort as e:
153
153
            trace.mutter('not a hg branch: %s', e)
154
154
            raise errors.NotBranchError(path=transport.base)
155
 
        except urllib2.HTTPError, e:
 
155
        except urllib2.HTTPError as e:
156
156
            trace.mutter('not a hg branch: %s', e)
157
157
            raise errors.NotBranchError(path=transport.base)
158
158
        return format