Browse Source

block device: update variable name

New versions of flake8 fail as "l" can be confused for "1" apparently
(E741) ... not sure I totally agree but since it's only one instance,
update it.

Change-Id: Ic5c47867facd56b53cc6534da4ae3a345c516202
changes/31/727431/1
Ian Wienand 2 years ago
parent
commit
9080d04923
  1. 5
      diskimage_builder/block_device/blockdevice.py

5
diskimage_builder/block_device/blockdevice.py

@ -108,8 +108,9 @@ class BlockDeviceState(collections.MutableMapping):
# This is pretty good for human consumption, but maybe a bit
# verbose.
nice_output = pprint.pformat(self.state, width=40)
for l in nice_output.split('\n'):
logger.debug('{0:{fill}{align}50}'.format(l, fill=' ', align='<'))
for line in nice_output.split('\n'):
logger.debug('{0:{fill}{align}50}'.format(
line, fill=' ', align='<'))
class BlockDevice(object):

Loading…
Cancel
Save