Merge branch 'master' into neopg-wip

This commit is contained in:
Roman Zeyde
2018-07-01 13:52:37 +03:00
19 changed files with 202 additions and 53 deletions

View File

@@ -48,9 +48,9 @@ def communicate(sock, msg):
return recvline(sock)
def sendline(sock, msg):
def sendline(sock, msg, confidential=False):
"""Send a binary message, followed by EOL."""
log.debug('<- %r', msg)
log.debug('<- %r', ('<snip>' if confidential else msg))
sock.sendall(msg + b'\n')