On Fri, 2015-08-28 at 10:04 -0400, Chris Lumens wrote:
> def main(argv):
> lst = set()
>
> - for dev in filter(lambda d: d.type != parted.DEVICE_DM and not
> d.path.startswith("/dev/sr"), parted.getAllDevices()):
> + for dev in filter(lambda d: check_device(d),
> parted.getAllDevices()):
You can further shorten the above line to be:
for dev in filter(check_device, parted.getAllDevices()):
Nice idea, changing
locally! :)
- Chris
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches