Skip to content

Commit

Permalink
Another pragma: nocover
Browse files Browse the repository at this point in the history
AFAICT sockets in Python always have a .sendall() method:
https://docs.python.org/2/library/socket.html#socket.socket.sendall
  • Loading branch information
mgedmin committed Apr 15, 2015
1 parent 37cdbee commit ef64bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zdaemon/zdrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def sendreply(self, msg):
msg = msg.encode()
if hasattr(self.commandsocket, "sendall"):
self.commandsocket.sendall(msg)
else:
else: # pragma: nocover
# This is quadratic, but msg is rarely more than 100 bytes :-)
while msg:
sent = self.commandsocket.send(msg)
Expand Down

0 comments on commit ef64bdd

Please sign in to comment.