Skip to content

Commit

Permalink
Merge pull request #7 from pawnhearts/master
Browse files Browse the repository at this point in the history
latin-1 removal
  • Loading branch information
edwardslabs authored Mar 27, 2017
2 parents cc478fe + 226ef79 commit d077762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleverwrap/cleverwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _process_reply(self, reply):
""" take the cleverbot.com response and populate properties. """
self.cs = reply.get("cs", None)
self.count = int(reply.get("interaction_count", None))
self.output = reply.get("output", None).encode('latin-1').decode('utf-8')
self.output = reply.get("output", None)
self.convo_id = reply.get("conversation_id", None)
self.history = {key:value for key, value in reply.items() if key.startswith("interaction")}
self.time_taken = int(reply.get("time_taken", None))
Expand Down

0 comments on commit d077762

Please sign in to comment.