summaryrefslogtreecommitdiffstats
path: root/pylint_plugins.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-02 15:58:43 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-03 09:00:34 +0200
commit3cf5f83d92a2c315eb8a0dd2ed06cd1d61df5d36 (patch)
tree35d9b5235752fca82159e5e12d99d75225c15b3b /pylint_plugins.py
parent0e989e2a28fb8093528176574ffd2ae2ecac4c14 (diff)
downloadfreeipa-3cf5f83d92a2c315eb8a0dd2ed06cd1d61df5d36.tar.gz
freeipa-3cf5f83d92a2c315eb8a0dd2ed06cd1d61df5d36.tar.xz
freeipa-3cf5f83d92a2c315eb8a0dd2ed06cd1d61df5d36.zip
ipalib: replace DeprecatedParam with `deprecated` Param argument
Introduce new `deprecated` Param keywork argument. Setting it to True on a param has the same effect as using DeprecatedParam. This allows deprecating params while retaining their type information. Revert all DeprecatedParam params back to their original definition and set `deprecated` to True. Remove the now unused DeprecatedParam class. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'pylint_plugins.py')
-rw-r--r--pylint_plugins.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint_plugins.py b/pylint_plugins.py
index 095e2bdda..35976bccd 100644
--- a/pylint_plugins.py
+++ b/pylint_plugins.py
@@ -153,6 +153,7 @@ ipa_class_members = {
'sortorder',
'option_group',
'no_convert',
+ 'deprecated',
],
'ipalib.parameters.Bool': [
'truths',