35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 0c9c08856bff1e60cb14ea9a2fdfa640c9af9eeb Mon Sep 17 00:00:00 2001
|
|
From: Hugo <hugovk@users.noreply.github.com>
|
|
Date: Tue, 21 Jan 2020 20:44:26 +0200
|
|
Subject: [PATCH] Fix collections.abc imports for Python 3.9
|
|
|
|
---
|
|
awscli/customizations/history/db.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/awscli/customizations/history/db.py b/awscli/customizations/history/db.py
|
|
index a171cdc61..bdb96d1dc 100644
|
|
--- a/awscli/customizations/history/db.py
|
|
+++ b/awscli/customizations/history/db.py
|
|
@@ -16,7 +16,7 @@ import json
|
|
import datetime
|
|
import threading
|
|
import logging
|
|
-from collections import MutableMapping
|
|
+from awscli.compat import collections_abc
|
|
|
|
from botocore.history import BaseHistoryHandler
|
|
|
|
@@ -119,7 +119,7 @@ class PayloadSerializer(json.JSONEncoder):
|
|
def default(self, obj):
|
|
if isinstance(obj, datetime.datetime):
|
|
return self._encode_datetime(obj)
|
|
- elif isinstance(obj, MutableMapping):
|
|
+ elif isinstance(obj, collections_abc.MutableMapping):
|
|
return self._encode_mutable_mapping(obj)
|
|
elif isinstance(obj, binary_type):
|
|
# In PY3 the bytes type differs from the str type so the default
|
|
--
|
|
2.25.0
|
|
|