PR#3082: lib: Deprecate koji.listFaults

Merges #3082
https://pagure.io/koji/pull-request/3082

Fixes: #3071
https://pagure.io/koji/issue/3071
remove koji.listFaults() method
This commit is contained in:
Yu Ming Zhu 2021-11-07 09:37:22 +00:00
commit 537439c60f

View file

@ -472,6 +472,7 @@ def listFaults():
name: the name of the exception
desc: the description of the exception (docstring)
"""
util.deprecated("method listFaults is deprecated and will be removed in 1.29")
ret = []
for n, v in globals().items():
if isinstance(v, type(Exception)) and issubclass(v, GenericError):