Skip to content

Removes utf8 encoding from generated snippet (python-requests)#260

Merged
webholik merged 1 commit intopostmanlabs:developfrom
someshkoli:fix/pythonrequeststest
Oct 6, 2020
Merged

Removes utf8 encoding from generated snippet (python-requests)#260
webholik merged 1 commit intopostmanlabs:developfrom
someshkoli:fix/pythonrequeststest

Conversation

@someshkoli
Copy link
Contributor

Fixes #249

RCA
This issue was due to different versions of python. In python 2.x, byte strings are printed without any prefix/suffix unlike the case in python 3.x where resulting byte code is inside b' string here '.

Solution
Removing encoding solves the above issue.

This PR adds the following changes:

  • removes .encode(utf8) from print statement in generated snippet

 - removes .encode(utf8) from print statement in generated snippet
@webholik webholik merged commit 0ddafbd into postmanlabs:develop Oct 6, 2020
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.

Cannot run Python-Requests tester because of JSON errors

2 participants