Project

General

Profile

Feature #970 ยป 0041-generate_packets.py-Fix-comment-typos.patch

Marko Lindqvist, 10/16/2024 01:25 AM

View differences:

common/generate_packets.py
class SequenceType(FieldType):
"""Abstract base class (ABC) for field types representing homogenous
"""Abstract base class (ABC) for field types representing homogeneous
sequences of elements"""
@abstractmethod
......
"""Whether a post-send hook should be called after sending this packet"""
want_post_recv: bool = False
"""Wheter a post-receive hook should be called when receiving this
"""Whether a post-receive hook should be called when receiving this
packet"""
delta: bool = True
......
def get_init(self) -> str:
"""Generate this packet's init function, which initializes the
packet struct so its complex-typed fields are useable, and sets
packet struct so its complex-typed fields are usable, and sets
all fields to the empty default state used for computing deltas"""
if self.complex:
field_parts = "\n" + "".join(
    (1-1/1)