Updated: [rhinstaller/blivet/pulls/160 master] Deprecate some little-used device lookup methods

dwlehman installerbot-noreply at redhat.com
Thu Jun 25 21:56:08 UTC 2015


`getDevicesBySerial` has no callers and the other two don't offer any value beyond their list comprehension equivalents `[d for d in dt.devices if isinstance(d, cls)]` (`getDevicesByInstance`) and `[d for d in dt.devices if d.type == devtype]` (`getDevicesByType`).

The first patch establishes a basic procedure for deprecating things in blivet. The warnings will only be logged if someone has called `blivet.util.set_up_logging`.
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/160


More information about the anaconda-patches mailing list