From dcee684bff34a574b8823ace378d0ddccfeab30f Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Fri, 18 Oct 2024 20:27:41 +0200 Subject: [PATCH 1/2] generate_packets.py: Fix crash under Python 3.13 This is a workaround for python/cpython#125710 Reported by Marko Lindqvist See RM #975 Signed-off-by: Alina Lenk --- common/generate_packets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/generate_packets.py b/common/generate_packets.py index 03723ef16a..f8e8bb7871 100755 --- a/common/generate_packets.py +++ b/common/generate_packets.py @@ -2631,7 +2631,7 @@ class Packet: if not dirs: raise ValueError("no directions defined for %s" % self.name) - self.dirs = Directions(dirs) + self.dirs = Directions(frozenset(dirs)) """Which directions this packet can be sent in""" raw_fields = [ -- 2.34.1