##// 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 _(b'sending batch with %d sub-commands\n')
4161 _(b'sending batch with %d sub-commands\n')
4162 % len(batchedcommands)
4162 % len(batchedcommands)
4163 )
4163 )
4164 assert peer is not None
4164 for i, chunk in enumerate(peer._submitbatch(batchedcommands)):
4165 for i, chunk in enumerate(peer._submitbatch(batchedcommands)):
4165 ui.status(
4166 ui.status(
4166 _(b'response #%d: %s\n') % (i, stringutil.escapestr(chunk))
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 elif action == b'close':
4244 elif action == b'close':
4245 assert peer is not None
4244 peer.close()
4246 peer.close()
4245 elif action == b'readavailable':
4247 elif action == b'readavailable':
4246 if not stdout or not stderr:
4248 if not stdout or not stderr:
General Comments 0
You need to be logged in to leave comments. Login now