[PATCH] Another dracut pylint change.

David Shea dshea at redhat.com
Fri Jan 24 21:46:49 UTC 2014


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



More information about the anaconda-patches mailing list