From 3bcab572e30115ab42e5b96e6054f9b60b44a75c Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 2 Aug 2013 17:50:28 +0900 Subject: Add missing docstrings to conform to PEP-257 Change-Id: If06f1ea17740a796142db63e7086f80445f4c6e1 --- pygerrit/ssh.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pygerrit/ssh.py') diff --git a/pygerrit/ssh.py b/pygerrit/ssh.py index 270a63f..0436165 100644 --- a/pygerrit/ssh.py +++ b/pygerrit/ssh.py @@ -35,7 +35,12 @@ from paramiko.ssh_exception import SSHException def _extract_version(version_string, pattern): - """ Extract the version from `version_string` using `pattern`. """ + """ Extract the version from `version_string` using `pattern`. + + Return the version as a string, with leading/trailing whitespace + stripped. + + """ if version_string: match = pattern.match(version_string.strip()) if match: -- cgit v1.2.1