summaryrefslogtreecommitdiff
path: root/cloudinit/net/__init__.py
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2020-06-01 14:20:39 -0700
committerGitHub <noreply@github.com>2020-06-01 17:20:39 -0400
commit4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1 (patch)
treec60b8f1d4ca9735efee890042b9d32ab6bc51f7d /cloudinit/net/__init__.py
parent1211ab449bdfa34b8883c7386772155e6a516ebb (diff)
downloadvyos-cloud-init-4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1.tar.gz
vyos-cloud-init-4ab3303ec4bb49f029b7821d6dba53a6b02b6dc1.zip
test: fix all flake8 E741 errors (#401)
This removes the use of variables named ‘l’, ‘O’, or ‘I’. Generally these are used in list comprehension to read the line of lines.
Diffstat (limited to 'cloudinit/net/__init__.py')
-rw-r--r--cloudinit/net/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index cb8c1601..8af24fa9 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -824,13 +824,13 @@ def get_interfaces_by_mac_on_freebsd():
# flatten each interface block in a single line
def flatten(out):
curr_block = ''
- for l in out.split('\n'):
- if l.startswith('\t'):
- curr_block += l
+ for line in out.split('\n'):
+ if line.startswith('\t'):
+ curr_block += line
else:
if curr_block:
yield curr_block
- curr_block = l
+ curr_block = line
yield curr_block
# looks for interface and mac in a list of flatten block