Fix the "serialize" method of the client in python3

The response body must be converted to a string before replacing characters in
it.

Depends-On: 634885
Change-Id: I078e7571179e3ef209c104a0a5426ae6fb9b63d8
This commit is contained in:
Luka Peschke 2019-02-05 11:04:42 +01:00
parent 979ef78512
commit 5e49179667
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class RatingClient(rest_client.RestClient):
@staticmethod
def deserialize(body):
return json.loads(body.replace("\n", ""))
return json.loads(body.decode().replace("\n", ""))
@staticmethod
def serialize(body):