diff options
author | Josh Karpel <josh.karpel@gmail.com> | 2019-02-05 18:15:08 -0600 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-05-31 16:49:03 -0400 |
commit | 8b6694f11892d32c0754c77300765e34faeb2ba9 (patch) | |
tree | 165548e324dd21c4f422d40811c39be1f88a878c | |
parent | 2584ab7540364a520285af4844b1eb2caf65b74b (diff) |
import MutableMapping from collections.abc instead of collections
(on Python>=3.3 only)
-rw-r--r-- | paramiko/hostkeys.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index 7faf32d8..cea10301 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -19,8 +19,12 @@ import binascii import os +import sys -from collections import MutableMapping +if sys.version_info[:2] >= (3, 3): + from collections.abc import MutableMapping +else: + from collections import MutableMapping from hashlib import sha1 from hmac import HMAC |