diff -r 1aa4d646d0de -r 77c9ee77687c mercurial/httppeer.py --- a/mercurial/httppeer.py Fri Apr 13 11:21:55 2018 -0700 +++ b/mercurial/httppeer.py Wed Apr 11 18:15:51 2018 -0700 @@ -672,7 +672,7 @@ # Integer priority for the service. If we could choose from multiple # services, we choose the one with the highest priority. API_PEERS = { - wireprototypes.HTTPV2: { + wireprototypes.HTTP_WIREPROTO_V2: { 'init': httpv2peer, 'priority': 50, },