Skip to content

Commit

Permalink
Fix spelling of parameter json_serialiser -> json_serializer (#8)
Browse files Browse the repository at this point in the history
madzak/python-json-logger#170 was included on the main branch of the upstream but never released, thus it was inadvertently released in `3.0.0`. This included the accidental renaming from US spelling to UK spelling of "serializer".

This PR reverts that change.


Co-authored-by: Julian Gilbey <jdg@debian.org>
  • Loading branch information
juliangilbey and Julian Gilbey authored Apr 1, 2024
1 parent 18a8a25 commit 0e1ff25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pythonjsonlogger/jsonlogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __init__(
*args: Any,
json_default: OptionalCallableOrStr = None,
json_encoder: OptionalCallableOrStr = None,
json_serialiser: Union[Callable, str] = json.dumps,
json_serializer: Union[Callable, str] = json.dumps,
json_indent: Optional[Union[int, str]] = None,
json_ensure_ascii: bool = True,
prefix: str = "",
Expand Down Expand Up @@ -157,7 +157,7 @@ def __init__(
"""
self.json_default = self._str_to_fn(json_default)
self.json_encoder = self._str_to_fn(json_encoder)
self.json_serializer = self._str_to_fn(json_serialiser)
self.json_serializer = self._str_to_fn(json_serializer)
self.json_indent = json_indent
self.json_ensure_ascii = json_ensure_ascii
self.prefix = prefix
Expand Down

0 comments on commit 0e1ff25

Please # to comment.