rename arguments and variable names

This commit is contained in:
Roman Zeyde
2015-07-04 08:35:59 +03:00
parent a77f9edb4e
commit 5db8a068ef
3 changed files with 9 additions and 8 deletions

View File

@@ -68,11 +68,11 @@ def spawn(func, **kwargs):
@contextlib.contextmanager
def serve(key_files, signer, sock_path=None):
def serve(public_keys, signer, sock_path=None):
if sock_path is None:
sock_path = tempfile.mktemp(prefix='ssh-agent-')
keys = [formats.parse_public_key(k) for k in key_files]
keys = [formats.parse_public_key(k) for k in public_keys]
environ = {'SSH_AUTH_SOCK': sock_path, 'SSH_AGENT_PID': str(os.getpid())}
with unix_domain_socket_server(sock_path) as server:
handler = protocol.Handler(keys=keys, signer=signer)