summaryrefslogtreecommitdiffstats
path: root/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.py')
-rw-r--r--ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh.py b/ssh.py
index 1d7ebe32..bb89fa1f 100644
--- a/ssh.py
+++ b/ssh.py
@@ -42,7 +42,7 @@ def _parse_ssh_version(ver_str=None):
42 """parse a ssh version string into a tuple""" 42 """parse a ssh version string into a tuple"""
43 if ver_str is None: 43 if ver_str is None:
44 ver_str = _run_ssh_version() 44 ver_str = _run_ssh_version()
45 m = re.match(r"^OpenSSH_([0-9.]+)(p[0-9]+)?\s", ver_str) 45 m = re.match(r"^OpenSSH_([0-9.]+)(p[0-9]+)?[\s,]", ver_str)
46 if m: 46 if m:
47 return tuple(int(x) for x in m.group(1).split(".")) 47 return tuple(int(x) for x in m.group(1).split("."))
48 else: 48 else: