summaryrefslogtreecommitdiffstats
path: root/ipalib/constants.py
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2014-02-21 11:38:32 -0500
committerPetr Viktorin <pviktori@redhat.com>2014-02-25 16:05:19 +0100
commit4499b25be90227e54fc4a9f54598cadc8d2f6394 (patch)
tree2b1a855b42534751426a9f5b5865587b9bc17e1a /ipalib/constants.py
parentbe7b1b94e300b137c34bab80df3dc91195259c89 (diff)
downloadfreeipa-4499b25be90227e54fc4a9f54598cadc8d2f6394.tar.gz
freeipa-4499b25be90227e54fc4a9f54598cadc8d2f6394.tar.xz
freeipa-4499b25be90227e54fc4a9f54598cadc8d2f6394.zip
Remove NULLS from constants.py
In the parameters system, we have been checking for a positive list of values which get converted to None. The problem is that this method can in some cases throw warnings when type coercion doesn't work (particularly, string to unicode). Instead, any values that evaluate to False that are neither numeric nor boolean should be converted to None. Reviewed-By: Jan Pazdziora <jpazdziora@redhat.com>
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r--ipalib/constants.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py
index ae0827729..5a304daeb 100644
--- a/ipalib/constants.py
+++ b/ipalib/constants.py
@@ -32,9 +32,6 @@ except:
except:
FQDN = None
-# The parameter system treats all these values as None:
-NULLS = (None, '', u'', tuple(), [])
-
# regular expression NameSpace member names must match:
NAME_REGEX = r'^[a-z][_a-z0-9]*[a-z0-9]$|^[a-z]$'