diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-02-26 16:29:31 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-02-28 18:48:56 +0000 |
commit | ed501d31729d6a1365bcf6e29f0c46ffcbdcb330 (patch) | |
tree | 202c91156546a28cf57caca9a8e92032b03a07e1 | |
parent | 5566b2ea651d17f5f253e26244906c89523ecd12 (diff) |
contrib/struct_endianness.py: simplify file extension check
Change-Id: Iaf7194fdfc3772973f9a9c806d375a9a56ff57c8
-rwxr-xr-x | contrib/struct_endianness.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/struct_endianness.py b/contrib/struct_endianness.py index 2601869e..e6cbe00b 100755 --- a/contrib/struct_endianness.py +++ b/contrib/struct_endianness.py @@ -261,7 +261,7 @@ def handle_struct_body(body_str): return body_str def _check_file(f): - if not (f.endswith('.h') or f.endswith('.c') or f.endswith('.cpp')): + if not f.endswith(('.h', '.c', '.cpp')): return # section the file into |