diff options
Diffstat (limited to 'raven/context.py')
-rw-r--r-- | raven/context.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/raven/context.py b/raven/context.py index 272259a..072be93 100644 --- a/raven/context.py +++ b/raven/context.py @@ -7,7 +7,11 @@ raven.context """ from __future__ import absolute_import -from collections import Mapping, Iterable +try: + from collections.abc import Mapping, Iterable +except ImportError: + # Python < 3.3 + from collections import Mapping, Iterable from threading import local from weakref import ref as weakref |