summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-05-31 16:52:31 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-05-31 16:52:31 -0400
commite43b1dca9bf365261ad5c979c3523a0aaf23a96d (patch)
tree171e940719d5397df67a7d33f27487c14324b54b
parent26fad8064190fe2620a7ac2fc02dd39a40cc8d02 (diff)
parentf5460bcd0b86daf8b70b332e5ec2d576af910eb6 (diff)
downloadparamiko-e43b1dca9bf365261ad5c979c3523a0aaf23a96d.tar.gz
Merge branch '2.0' into 2.1
-rw-r--r--paramiko/hostkeys.py6
-rw-r--r--sites/www/changelog.rst4
2 files changed, 9 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
diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst
index 0a9978c1..0f3ce435 100644
--- a/sites/www/changelog.rst
+++ b/sites/www/changelog.rst
@@ -2,6 +2,10 @@
Changelog
=========
+- :support:`1378 backported` Add support for the modern (as of Python 3.3)
+ import location of ``MutableMapping`` (used in host key management) to avoid
+ the old location becoming deprecated in Python 3.8. Thanks to Josh Karpel for
+ catch & patch.
- :release:`2.1.6 <2018-09-18>`
- :release:`2.0.9 <2018-09-18>`
- :bug:`-` Modify protocol message handling such that ``Transport`` does not