simplify string formatting in some modules (#10727)

* simplify string formatting in some modules

* add changelog frag
This commit is contained in:
Alexei Znamensky
2025-08-31 21:46:43 +12:00
committed by GitHub
parent 3cc4f28fd7
commit 6f40eff632
10 changed files with 23 additions and 13 deletions

View File

@@ -414,7 +414,7 @@ def main():
COMMANDARGS.extend(['--table', table])
if wait is not None:
TESTCOMMAND.extend(['--wait', '%s' % wait])
TESTCOMMAND.extend(['--wait', '%d' % wait])
if modprobe is not None:
b_modprobe = to_bytes(modprobe, errors='surrogate_or_strict')
@@ -502,7 +502,7 @@ def main():
MAINCOMMAND.insert(0, bin_iptables_restore)
if wait is not None:
MAINCOMMAND.extend(['--wait', '%s' % wait])
MAINCOMMAND.extend(['--wait', '%d' % wait])
if _back is not None:
b_back = to_bytes(_back, errors='surrogate_or_strict')