From: Mattia Rizzolo <mattia@debian.org>
Date: Mon, 24 Sep 2018 13:26:34 +0200
Subject: Fix DeprecationWarning with Python 3.7.

Bug-Debian: https://bugs.debian.org/904187
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
---
 src/datrie.pyx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/datrie.pyx b/src/datrie.pyx
index f969c7c..db1a091 100644
--- a/src/datrie.pyx
+++ b/src/datrie.pyx
@@ -15,7 +15,10 @@ import itertools
 import warnings
 import sys
 import tempfile
-from collections import MutableMapping
+try:
+    from collections.abc import MutableMapping
+except ImportError:
+    from collections import MutableMapping
 
 try:
     import cPickle as pickle
