From 7a3bd28b5275c1d2322027f96d12959cd973c143 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 18 Jun 2024 21:19:26 -0400 Subject: [PATCH] Restore compatibility for Python 3.8. --- googlevoice/voice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/googlevoice/voice.py b/googlevoice/voice.py index 78802a2..7f3c158 100644 --- a/googlevoice/voice.py +++ b/googlevoice/voice.py @@ -311,7 +311,11 @@ def __validate_special_page(self, page, data: Mapping = {}, **kwargs): """ Validates a given special page for an 'ok' response """ - util.load_and_validate(self.__do_special_page(page, dict(data) | kwargs)) + # Python 3.8 compatibility + # data = dict(data) | kwargs + data = dict(data) + data.update(kwargs) + util.load_and_validate(self.__do_special_page(page, data)) _Phone__validate_special_page = __validate_special_page