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

Do not return bytes, but str #485

Merged
merged 5 commits into from
Apr 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4383,7 +4383,8 @@ def download_debug_certificate(self, synchronous=True, **kwargs):
kwargs.update(self._server_config.get_client_kwargs())
response = client.get(
self.path('download_debug_certificate'), **kwargs)
return _handle_response(response, self._server_config, synchronous)
return str(_handle_response(
response, self._server_config, synchronous))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work in py3 this will return something like b'***'.
Please use decode('utf-8') that will work in py2 and py3.



class OSDefaultTemplate(
Expand Down