Skip to content
Snippets Groups Projects
Commit 9746b695 authored by Bruce Flynn's avatar Bruce Flynn
Browse files

fix sorted(cmp= compat issue

parent e5aa7066
No related branches found
No related tags found
No related merge requests found
......@@ -144,8 +144,7 @@ def _read_apid_list(header, buf):
def _sorted_packet_dataset_names(names):
names = [k for k in names if k.startswith('RawApplicationPackets_')]
cmp_names = lambda *tup: cmp(*(int(x.split('_')[-1]) for x in tup)) # noqa
return sorted(names, cmp=cmp_names)
return sorted(names, key=lambda x: int(x.split('_')[-1]))
def _generate_packet_datasets(group):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment