laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/31580 )

Change subject: contrib/struct_endianness.py: simplify file extension check
......................................................................

contrib/struct_endianness.py: simplify file extension check

Change-Id: Iaf7194fdfc3772973f9a9c806d375a9a56ff57c8
---
M contrib/struct_endianness.py
1 file changed, 10 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified




diff --git a/contrib/struct_endianness.py b/contrib/struct_endianness.py
index 2601869..e6cbe00 100755
--- a/contrib/struct_endianness.py
+++ b/contrib/struct_endianness.py
@@ -261,7 +261,7 @@
         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

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/31580
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iaf7194fdfc3772973f9a9c806d375a9a56ff57c8
Gerrit-Change-Number: 31580
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to