Skip to content

Conversation

@RMKD
Copy link
Contributor

@RMKD RMKD commented Nov 10, 2017

I had to tweak a couple things to get this running in python 3 - tested in 2.7.13 for backwards compatibility.

data = response[0]
statistics = response[1]
result_set = [res.split(',') for res in data]
result_set = [res.decode().split(',') for res in data]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need decode here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like an artefact of trying to track down the issue that can be removed.

@staticmethod
def _get_value(prop, statistics):
for stat in statistics:
stat = stat.decode()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not that familiar with Python3, could you explain why do we need decode here?

@swilly22 swilly22 merged commit cd2da3f into RedisGraph:master Nov 19, 2017
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.

2 participants