[master 5/5] Simplify StorageDevice.disks.

vpodzime installerbot-noreply at redhat.com
Wed Mar 4 11:24:14 UTC 2015


In reply to line 160 of blivet/devices/storage.py:

I think you could go one step further here with ``_disks.extend(d for d in parent.disks if d not in _disks for parent in self.parents)`` or even ``_disks = [SAME HERE]``. 

-- 
To view this comment on github, visit https://github.com/mulkieran/blivet/commit/06342f7063698808c24d47df92f6ee19ac8e3c87#commitcomment-10027308


More information about the anaconda-patches mailing list