Skip to content

Fixed the serialization of byte-string objects in Python 3#551

Merged
untitaker merged 2 commits into
getsentry:masterfrom
xvillaneau:fix/550-bytes-serialization
Nov 11, 2019
Merged

Fixed the serialization of byte-string objects in Python 3#551
untitaker merged 2 commits into
getsentry:masterfrom
xvillaneau:fix/550-bytes-serialization

Conversation

@xvillaneau

Copy link
Copy Markdown
Contributor

Fixes #550

The serializer was returning lists of integers when attempting to serialize bytes. On top of that, the behavior of sentry_sdk.utils.safe_repr was decoding non-printable characters, and generally not behaving as expected.

Both issues were fixed for Python 3. safe_repr still has the bug in Python 2, but the solution for that will not be straightforward.

@untitaker
untitaker merged commit 8cc48dc into getsentry:master Nov 11, 2019
@untitaker

Copy link
Copy Markdown
Member

Solid work, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bytes Objects serialized as list of integers in Python 3

2 participants