[PATCH] Another dracut pylint change.
Brian C. Lane
bcl at redhat.com
Fri Jan 24 23:58:40 UTC 2014
On Fri, Jan 24, 2014 at 04:46:49PM -0500, David Shea wrote:
> Remove an unused variable, and instead of wrapping str(x) in a lambda
> just pass str as the callable.
> ---
> dracut/driver-updates | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/dracut/driver-updates b/dracut/driver-updates
> index 71d6e25..39bdebe 100755
> --- a/dracut/driver-updates
> +++ b/dracut/driver-updates
> @@ -605,7 +605,6 @@ def select_iso():
> :rtype: (str, str)
> """
>
> - dev_prefix = "/dev/"
> blkid_out_regex = re.compile(r'^/dev/([^:]+):\s+LABEL="([^"]+)"\s+UUID="([^"]+)"\s+TYPE="([^"]+)"')
> _ret, out = run_cmd(["blkid"])
> devices = []
> @@ -616,8 +615,7 @@ def select_iso():
>
> header = " %-10s %-6s %-15s %s" % ("DEVICE", "TYPE", "LABEL", "UUID")
> iso_dev = selection_menu(devices, "Driver disk device selection\n" + header,
> - lambda dev_info: str(dev_info),
> - multi_choice=False)
> + str, multi_choice=False)
> if not iso_dev:
> return (None, None)
>
> --
> 1.8.5.3
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list