Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Regenerating packet-parlay.c

From: Luke Mewburn <luke@xxxxxxxxxxx>
Date: Thu, 30 Apr 2020 10:41:25 +1000
On 20-04-30 10:35, Luke Mewburn wrote:
  | As to the problem; looking at the use of .keys() in wireshark_gen.py,
  | there's a couple of places where the code is either:
  | - get_intlist(), sorted:
  | 	ret = list(ex_hash.keys())
  | 	ret.sort()
  | 	return ret
  | - get_exceptionList(), unsorted:
  | 	ret = list(ex_hash.keys())
  | 	return ret
  | 
  | Both could be simplified to an ordered result using sorted():
  | 	ret = sorted(ex_hash.keys())
  | 	return ret

I actually meant:
	ret = sorted(ex_hash)
	return ret

Because sorted() takes an iterable.
That seems to work in both python2 and python3.


Luke.