From 5814bec47ab8744bd5d4009039fd02a99011f8b8 Mon Sep 17 00:00:00 2001 From: RoboSchmied Date: Mon, 25 Mar 2024 21:58:21 +0100 Subject: [PATCH 1/2] Fix: 3 typos Signed-off-by: RoboSchmied --- openage/cabextract/cabchecksum.pyx | 2 +- openage/util/struct.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openage/cabextract/cabchecksum.pyx b/openage/cabextract/cabchecksum.pyx index f869fc383b..3c8efaddb3 100644 --- a/openage/cabextract/cabchecksum.pyx +++ b/openage/cabextract/cabchecksum.pyx @@ -74,7 +74,7 @@ def mscab_csum(bytes data): for i in range(count): result ^= data_ptr[i] - # we have so far ignored endianess issues. + # we have so far ignored endianness issues. # on a non-little endian system, the interpretation is wrong. # thus, interpret it as binary data and decode it as little endian. result = ( diff --git a/openage/util/struct.py b/openage/util/struct.py index fa092669d5..30530c55ac 100644 --- a/openage/util/struct.py +++ b/openage/util/struct.py @@ -48,7 +48,7 @@ def __new__(mcs, name, bases, classdict, **kwds): raise SyntaxError("endianness has been given multiple times") if value not in "@=<>!": - raise SyntaxError("endianess: expected one of @=<>!") + raise SyntaxError("endianness: expected one of @=<>!") specstr = value continue @@ -95,7 +95,7 @@ class NamedStruct(metaclass=NamedStructMeta): Alternatively, attributes may be set to None; those are ignored, and may be set manually at some later point. - The first member must be 'endianess'. + The first member must be 'endianness'. Example: From 5bc1abb6bfc113df7bc765e0092d45b94bb14436 Mon Sep 17 00:00:00 2001 From: RoboSchmied Date: Tue, 26 Mar 2024 00:45:38 +0100 Subject: [PATCH 2/2] fix copyright year in 2 files and add info to copying.md Signed-off-by: Michael Seibt --- copying.md | 1 + openage/cabextract/cabchecksum.pyx | 2 +- openage/util/struct.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/copying.md b/copying.md index afad82f953..13124fb993 100644 --- a/copying.md +++ b/copying.md @@ -152,6 +152,7 @@ _the openage authors_ are: | Fábio Barkoski | fabiobarkoski | fabiobarkoskii à gmail dawt com | | Astitva Kamble | askastitva | astitvakamble5 à gmail dawt com | | Haoyang Bi | AyiStar | ayistar à outlook dawt com | +| Michael Seibt | RoboSchmied | github à roboschmie dawt de | If you're a first-time committer, add yourself to the above list. This is not just for legal reasons, but also to keep an overview of all those nicknames. diff --git a/openage/cabextract/cabchecksum.pyx b/openage/cabextract/cabchecksum.pyx index 3c8efaddb3..cc5d418868 100644 --- a/openage/cabextract/cabchecksum.pyx +++ b/openage/cabextract/cabchecksum.pyx @@ -1,4 +1,4 @@ -# Copyright 2015-2016 the openage authors. See copying.md for legal info. +# Copyright 2015-2024 the openage authors. See copying.md for legal info. """ Implements the MSCAB checksum algorithm. diff --git a/openage/util/struct.py b/openage/util/struct.py index 30530c55ac..c56d7ed023 100644 --- a/openage/util/struct.py +++ b/openage/util/struct.py @@ -1,4 +1,4 @@ -# Copyright 2015-2023 the openage authors. See copying.md for legal info. +# Copyright 2015-2024 the openage authors. See copying.md for legal info. """ Provides some classes designed to expand the functionality of struct.struct