From 20d75866ad3c06aeb6a4e2a77e0295ba987b2796 Mon Sep 17 00:00:00 2001 From: Nick Schouten Date: Wed, 20 Nov 2024 16:10:10 +0100 Subject: [PATCH] apparently you want to still support 3.8 :o who does that. It is deprecated! :angry: --- papermill/iorw.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/papermill/iorw.py b/papermill/iorw.py index 934f1b2e..7feeb0e7 100644 --- a/papermill/iorw.py +++ b/papermill/iorw.py @@ -177,9 +177,7 @@ def _get_auth_kwargs(cls): @classmethod def _get_read_kwargs(cls): kwargs = cls._get_auth_kwargs() or {'headers': {}} - kwargs['headers'] |= { - 'Accept': os.environ.get('PAPERMILL_HTTP_ACCEPT_HEADER', 'application/json') - } + kwargs['headers']['Accept'] = os.environ.get('PAPERMILL_HTTP_ACCEPT_HEADER', 'application/json') return kwargs @classmethod