Skip to content

Commit 57cbba4

Browse files
committed
tc: fix flake8 issues
pytest_mh/utils/tc.py:88:90: E226 missing whitespace around arithmetic operator pytest_mh/utils/tc.py:123:84: E226 missing whitespace around arithmetic operator
1 parent d513330 commit 57cbba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_mh/utils/tc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def add_delay(self, hostname: str, time: str | int):
8585
commands = "set -e\n"
8686
for interface in self.__interfaces:
8787
commands += (
88-
f"tc qdisc add dev {interface} parent 1:{self.__band} handle {self.__band*10}: netem "
88+
f"tc qdisc add dev {interface} parent 1:{self.__band} handle {self.__band * 10}: netem "
8989
f"delay {time_unit}\n"
9090
)
9191
for ip in ip_list:
@@ -120,6 +120,6 @@ def remove_delay(self, hostname: str):
120120
for band in bands:
121121
commands += f"tc filter del dev {interface} prio {band}\n"
122122

123-
commands += f"tc qdisc del dev {interface} parent 1:{band} handle {band*10}: netem\n"
123+
commands += f"tc qdisc del dev {interface} parent 1:{band} handle {band * 10}: netem\n"
124124

125125
self.host.ssh.run(commands, log_level=SSHLog.Error)

0 commit comments

Comments
 (0)