Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report Unicode strings as is for python2.7 #25

Merged
merged 1 commit into from
Dec 28, 2023
Merged

Conversation

hammady
Copy link
Member

@hammady hammady commented Dec 27, 2023

In python 2.7, strings are not in Unicode by default. The current code converts them to Unicode before processing. As a result, the Reporter class converts those strings to JSON dumped strings before reporting as they don't match the data type str.
This PR checks if the type is unicode then skips the above conversion in this case.

@hammady hammady self-assigned this Dec 27, 2023
@hammady hammady merged commit 0296a52 into python2.7 Dec 28, 2023
1 check passed
@hammady hammady deleted the python2.7-unicode branch December 28, 2023 16:44
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.

2 participants