From 4499b25be90227e54fc4a9f54598cadc8d2f6394 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Fri, 21 Feb 2014 11:38:32 -0500 Subject: 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 --- ipalib/constants.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'ipalib/constants.py') 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]$' -- cgit