The original code produced (with Python 3.14.6 and earlier versions):

DeprecationWarning: 'count' is passed as positional argument

This patch fixes it.

Signed-off-by: Dmitry Mityugov <[email protected]>
---
 build-aux/extract-ofp-actions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions
index cc5c1dbb0..82c5c0931 100755
--- a/build-aux/extract-ofp-actions
+++ b/build-aux/extract-ofp-actions
@@ -276,7 +276,7 @@ def extract_ofp_actions(fn, definitions):
                     print("      %s," % d["arg_ofs"])
                     print("      %s," % d["arg_len"])
                     print("      \"%s\","
-                          % re.sub(r'_RAW[0-9]*', '', d["enum"], 1))
+                          % re.sub(r'_RAW[0-9]*', '', d["enum"], count=1))
                     if d["deprecation"]:
                         print("      \"%s\","
                               % re.sub(r'(["\\])', r'\\\1', d["deprecation"]))
-- 
2.55.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to