diff --git a/bleach/_vendor/html5lib/_trie/_base.py b/bleach/_vendor/html5lib/_trie/_base.py
index a1158bbb..b4bc757a 100644
--- a/bleach/_vendor/html5lib/_trie/_base.py
+++ b/bleach/_vendor/html5lib/_trie/_base.py
@@ -1,6 +1,11 @@
from __future__ import absolute_import, division, unicode_literals
-from collections import Mapping
+try:
+ # Python 3
+ from collections.abc import Mapping
+except ImportError:
+ # Python 2.7
+ from collections import Mapping
class Trie(Mapping):