From 2ef5ce727b42757790d4dd92d9a80626cdb639a9 Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Thu, 14 Jul 2022 14:14:27 +0200 Subject: [PATCH] Fix generate_packets.py failure under Python 3.5 See osdn#45095 Signed-off-by: Alina Lenk --- common/generate_packets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/generate_packets.py b/common/generate_packets.py index f1d105af10..83ccc0635d 100755 --- a/common/generate_packets.py +++ b/common/generate_packets.py @@ -22,6 +22,7 @@ from pathlib import Path from contextlib import contextmanager from functools import partial from itertools import chain, combinations +from collections import deque try: from functools import cache @@ -457,7 +458,7 @@ class Field: # analyze fields for field_text in fields.split(","): field_text = field_text.strip() - sizes = typing.Deque[SizeInfo]() + sizes = deque() mo = cls.FIELD_ARRAY_PATTERN.fullmatch(field_text) while mo is not None: -- 2.34.1