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

fixes #962 - fix lambda on both py2 and py3 #965

Merged
merged 1 commit into from
Feb 14, 2017

Conversation

r4f4
Copy link
Contributor

@r4f4 r4f4 commented Feb 13, 2017

tools/ustat.py Outdated
else:
counts = sorted(counts.items(), key=lambda k, _: k)
counts = sorted(counts.items(), key=itemgetter(1))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is cute but maybe for simplicity stick to kv[1]? People reading and maintaining these tools aren't likely to be native pythonistas (myself included)...

@drzaeus77 drzaeus77 merged commit 372d1ff into iovisor:master Feb 14, 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.

3 participants