mirror of
https://github.com/romanz/amodem.git
synced 2026-04-18 04:06:00 +08:00
gpg: fix comment
This commit is contained in:
@@ -24,7 +24,7 @@ def get_agent_sock_path(sp=subprocess):
|
|||||||
def connect_to_agent(sp=subprocess):
|
def connect_to_agent(sp=subprocess):
|
||||||
"""Connect to GPG agent's UNIX socket."""
|
"""Connect to GPG agent's UNIX socket."""
|
||||||
sock_path = get_agent_sock_path(sp=sp)
|
sock_path = get_agent_sock_path(sp=sp)
|
||||||
sp.check_call(['gpg-connect-agent', '/bye']) # Stop current gpg-agent
|
sp.check_call(['gpg-connect-agent', '/bye']) # Make sure it's running
|
||||||
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
||||||
sock.connect(sock_path)
|
sock.connect(sock_path)
|
||||||
return sock
|
return sock
|
||||||
|
|||||||
Reference in New Issue
Block a user