From a00dab7bcfb815ce370e14d1b33f328d5aee1c0d Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Mon, 3 Dec 2018 21:54:01 +0800 Subject: [PATCH] Import MutableMapping from the correct Python module Change-Id: Ifb66fe22bc607b13f5c4756d3b93f5e8206c33e3 --- migrate/changeset/databases/sqlite.py | 2 +- migrate/changeset/schema.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migrate/changeset/databases/sqlite.py b/migrate/changeset/databases/sqlite.py index 92d42f2..e4173d7 100644 --- a/migrate/changeset/databases/sqlite.py +++ b/migrate/changeset/databases/sqlite.py @@ -4,7 +4,7 @@ .. _`SQLite`: http://www.sqlite.org/ """ try: # Python 3 - from collections import MutableMapping as DictMixin + from collections.abc import MutableMapping as DictMixin except ImportError: # Python 2 from UserDict import DictMixin from copy import copy diff --git a/migrate/changeset/schema.py b/migrate/changeset/schema.py index 931ef7b..bf18e03 100644 --- a/migrate/changeset/schema.py +++ b/migrate/changeset/schema.py @@ -3,7 +3,7 @@ """ import abc try: # Python 3 - from collections import MutableMapping as DictMixin + from collections.abc import MutableMapping as DictMixin except ImportError: # Python 2 from UserDict import DictMixin import warnings