diff options
Diffstat (limited to 'ssh.py')
| -rw-r--r-- | ssh.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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: |
