ofp-errors: Ignore text enclosed in square brackets
[openvswitch] / build-aux / extract-ofp-errors
index e513b7f4ae4388211b5ec59031a5826ccdb820c1..bd4ab9ed51e516fed16d67e356fb476aba78c195 100755 (executable)
@@ -207,7 +207,7 @@ def extract_ofp_errors(filenames):
 
             enum = m.group(1)
 
-            comments.append(comment)
+            comments.append(re.sub('\[[^]]*\]', '', comment))
             names.append(enum)
 
             for dst in dsts.split(', '):