socket.error is a subclass of IOError, which we catch higher up. It
seems to have been this way since 020a896a5292 (dispatch: sort
exception handlers, 2009-01-12), so let's celebrate the 10 year
anniversary (a few days late) of it being wrong by deleting it.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG17941fc53ae9: scmutil: drop unreachable except clause
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Queued, thanks.
socket.error is a subclass of IOError, which we catch higher up. It
For the record, it's Python 2.6 feature.
https://docs.python.org/2.7/library/socket.html#socket.error