From d6532311b91cd8442a8c1fd8bd3f2bd0ebc04d00 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 19 Feb 2016 20:51:19 +0200 Subject: [PATCH] fix PEP8 & docstrings --- trezor_agent/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trezor_agent/__main__.py b/trezor_agent/__main__.py index ce1b89e..31ad406 100644 --- a/trezor_agent/__main__.py +++ b/trezor_agent/__main__.py @@ -64,6 +64,7 @@ def setup_logging(verbosity): def git_host(remote_name): + """Extract git SSH host for specified remote name.""" output = subprocess.check_output('git config --local --list'.split()) pattern = r'remote\.{}\.url=(.*)'.format(remote_name) matches = re.findall(pattern, output) @@ -75,6 +76,7 @@ def git_host(remote_name): host, path = url.split(':', 1) return 'ssh://{}@{}/{}'.format(user, host, path) + def ssh_sign(conn, label, blob): """Perform SSH signature using given hardware device connection.""" now = time.strftime('%Y-%m-%d %H:%M:%S')