summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paramiko/hostkeys.py6
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