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
tags/2.37.0
Ian Wienand 2 months ago
parent
commit
9080d04923
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      diskimage_builder/block_device/blockdevice.py

+ 3
- 2
diskimage_builder/block_device/blockdevice.py View File

@@ -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