[rhinstaller/blivet/pulls/160 master] Deprecate some little-used device lookup methods
mulkieran
installerbot-noreply at redhat.com
Fri Jun 19 14:01:26 UTC 2015
Twisted's deprecated decorator handles the docstring part as well, by mangling the ```__doc__``` attribute. But that kind of thing is ugly, so I didn't want to suggest it.
But it still seems like a decorator that handled the warnings would be helpful for encouraging uniformity and recognizability and probably checkability.
I think that you could deprecate a class by deprecating its constructor using the same method as for deprecating methods.
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/160
More information about the anaconda-patches
mailing list