awscli/0001-Fix-collections.abc-imports-for-Python-3.9.patch
Igor Raits 63d21f0b26
Update to 1.17.12
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-02-07 08:33:51 +01:00

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