From b5f75d57192e88051189e910dd1ca56f9e335e1c Mon Sep 17 00:00:00 2001 From: geisserml Date: Thu, 1 Feb 2024 02:20:53 +0100 Subject: [PATCH] confnames: align to trailing underscore --- src/ctypesgen/expressions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctypesgen/expressions.py b/src/ctypesgen/expressions.py index 0e5f77d0..251c7e01 100644 --- a/src/ctypesgen/expressions.py +++ b/src/ctypesgen/expressions.py @@ -230,7 +230,7 @@ def __init__(self, op, format, base, attribute): # Fortunately, the processor module does the same thing to # the struct member name. if self.attribute in keyword.kwlist: - self.attribute = "_" + self.attribute + self.attribute += "_" def visit(self, visitor): self.base.visit(visitor)