In order to appease Python 3.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
hg-reviewers |
In order to appease Python 3.
Lint Skipped |
Unit Tests Skipped |
from .i18n import _ | from .i18n import _ | ||||
from .thirdparty import ( | from .thirdparty import ( | ||||
attr, | attr, | ||||
) | ) | ||||
from . import ( | from . import ( | ||||
encoding, | encoding, | ||||
error, | error, | ||||
pycompat, | |||||
util, | util, | ||||
) | ) | ||||
from .utils import ( | from .utils import ( | ||||
cborutil, | cborutil, | ||||
stringutil, | stringutil, | ||||
) | ) | ||||
FRAME_HEADER_SIZE = 8 | FRAME_HEADER_SIZE = 8 | ||||
except error.WireprotoCommandError as e: | except error.WireprotoCommandError as e: | ||||
for frame in createcommanderrorresponse( | for frame in createcommanderrorresponse( | ||||
stream, requestid, e.message, e.messageargs): | stream, requestid, e.message, e.messageargs): | ||||
yield frame | yield frame | ||||
break | break | ||||
except Exception as e: | except Exception as e: | ||||
for frame in createerrorframe(stream, requestid, | for frame in createerrorframe( | ||||
'%s' % e, | stream, requestid, '%s' % stringutil.forcebytestr(e), | ||||
errtype='server'): | errtype='server'): | ||||
yield frame | yield frame | ||||
break | break | ||||
try: | try: | ||||
if not emitted: | if not emitted: | ||||
yield createcommandresponseokframe(stream, requestid) | yield createcommandresponseokframe(stream, requestid) | ||||
emitted = True | emitted = True |