From 9080d04923ed43c2c8071a554edd7c722f649b2b Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 13 May 2020 06:20:31 +1000 Subject: [PATCH] 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 --- diskimage_builder/block_device/blockdevice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diskimage_builder/block_device/blockdevice.py b/diskimage_builder/block_device/blockdevice.py index 71ab3604..7fb938b2 100644 --- a/diskimage_builder/block_device/blockdevice.py +++ b/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):