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:
parent
979ef78512
commit
5e49179667
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue