Skip to content

Commit

Permalink
Restore compatibility for Python 3.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 19, 2024
1 parent 041bc02 commit 7a3bd28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion googlevoice/voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7a3bd28

Please sign in to comment.