summaryrefslogtreecommitdiff
path: root/devstack
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2023-02-15 21:42:17 +0000
committerErik Olof Gunnar Andersson <eandersson@blizzard.com>2023-02-21 20:12:04 +0000
commit8910a2014be52808cb3f4a42953b2176e852d0ad (patch)
treea7f607b6d5f07dd6f231574b63a1d6949648f16c /devstack
parentfbfb1b0dd80bbcc2a6d1f09259972657d66fd998 (diff)
downloaddesignate-8910a2014be52808cb3f4a42953b2176e852d0ad.tar.gz
Add hacking check for line continuation backslash16.0.0.0rc116.0.0
This patch adds a hacking check for line continuation backslashes and fixes the occurences that existed in the code. Change-Id: I1d1269de231f6e747248a9d816a1d64e3968c69b
Diffstat (limited to 'devstack')
-rw-r--r--devstack/networking_test.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/devstack/networking_test.py b/devstack/networking_test.py
index 0e279af7..3b34eac3 100644
--- a/devstack/networking_test.py
+++ b/devstack/networking_test.py
@@ -289,8 +289,8 @@ COMMIT
packet_loss_perc):
"""Setup tc htb entry, netem and filter"""
assert proto in ('tcp', 'udp')
- cmd = "class add dev lo parent 1: classid %s htb rate 1000Mbps" % \
- class_id
+ cmd = ("class add dev lo parent 1: classid %s htb rate 1000Mbps" %
+ class_id)
self.run_tc(cmd)
self._setup_netem(class_id, latency_ms, latency_ms, packet_loss_perc)
self._setup_filter(proto, 'sport %d' % port, class_id)
@@ -316,8 +316,8 @@ COMMIT
"""
protocol_nums = dict(tcp=6, udp=17)
pnum = protocol_nums[protocol]
- cmd = "filter add dev lo protocol ip prio 1 u32 match ip protocol " \
- "%(pnum)d 0xff match ip %(filter)s 0xffff flowid %(flowid)s"
+ cmd = ("filter add dev lo protocol ip prio 1 u32 match ip protocol "
+ "%(pnum)d 0xff match ip %(filter)s 0xffff flowid %(flowid)s")
self.run_tc(cmd % dict(pnum=pnum, filter=filter, flowid=flowid))
@@ -400,8 +400,8 @@ class Digger(object):
assert self.prober_is_running is True
self._progress_report_time = 0
now = time.time()
- while (self.goals or not self.prober_can_stop) and \
- now < self.prober_timeout_time:
+ while ((self.goals or not self.prober_can_stop) and
+ now < self.prober_timeout_time):
for goal in tuple(self.goals):
goal_type = goal[0]