##// END OF EJS Templates
debugcommands: add assertions to convince pytype peer is not None...
Augie Fackler -
r44103:23ad4f0c default
parent child Browse files
Show More
@@ -4161,6 +4161,7 def debugwireproto(ui, repo, path=None,
4161 4161 _(b'sending batch with %d sub-commands\n')
4162 4162 % len(batchedcommands)
4163 4163 )
4164 assert peer is not None
4164 4165 for i, chunk in enumerate(peer._submitbatch(batchedcommands)):
4165 4166 ui.status(
4166 4167 _(b'response #%d: %s\n') % (i, stringutil.escapestr(chunk))
@@ -4241,6 +4242,7 def debugwireproto(ui, repo, path=None,
4241 4242 )
4242 4243
4243 4244 elif action == b'close':
4245 assert peer is not None
4244 4246 peer.close()
4245 4247 elif action == b'readavailable':
4246 4248 if not stdout or not stderr:
General Comments 0
You need to be logged in to leave comments. Login now