Show More
@@ -16,9 +16,6 b' import struct' | |||||
16 | import weakref |
|
16 | import weakref | |
17 |
|
17 | |||
18 | from .i18n import _ |
|
18 | from .i18n import _ | |
19 | from .thirdparty import ( |
|
|||
20 | cbor, |
|
|||
21 | ) |
|
|||
22 | from . import ( |
|
19 | from . import ( | |
23 | bundle2, |
|
20 | bundle2, | |
24 | error, |
|
21 | error, | |
@@ -35,6 +32,7 b' from . import (' | |||||
35 | wireprotov2server, |
|
32 | wireprotov2server, | |
36 | ) |
|
33 | ) | |
37 | from .utils import ( |
|
34 | from .utils import ( | |
|
35 | cborutil, | |||
38 | interfaceutil, |
|
36 | interfaceutil, | |
39 | stringutil, |
|
37 | stringutil, | |
40 | ) |
|
38 | ) | |
@@ -913,8 +911,8 b' def performhandshake(ui, url, opener, re' | |||||
913 | if advertisev2: |
|
911 | if advertisev2: | |
914 | if ct == 'application/mercurial-cbor': |
|
912 | if ct == 'application/mercurial-cbor': | |
915 | try: |
|
913 | try: | |
916 |
info = cbor. |
|
914 | info = cborutil.decodeall(rawdata)[0] | |
917 | except cbor.CBORDecodeError: |
|
915 | except cborutil.CBORDecodeError: | |
918 | raise error.Abort(_('error decoding CBOR from remote server'), |
|
916 | raise error.Abort(_('error decoding CBOR from remote server'), | |
919 | hint=_('try again and consider contacting ' |
|
917 | hint=_('try again and consider contacting ' | |
920 | 'the server operator')) |
|
918 | 'the server operator')) |
General Comments 0
You need to be logged in to leave comments.
Login now