Skip to content

Commit 6ea4252

Browse files
committed
Replacing '|' with {**dict1, **dict2} due to support of Python < 3.9
1 parent 22956ce commit 6ea4252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/logging/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def clear_context_keys() -> None:
428428

429429
def set_context_keys(**kwargs: Dict[str, Any]) -> None:
430430
context = _get_context()
431-
context.set(context.get() | kwargs)
431+
context.set({**context.get(), **kwargs})
432432

433433

434434
def remove_context_keys(keys: Iterable[str]) -> None:

0 commit comments

Comments
 (0)