diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 08:10:25 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2013-01-03 08:10:25 +0000 |
commit | 2853156a2bce535bcaa440c37cf872916f76c03b (patch) | |
tree | 8e161033a9bac8274dcaca05940964b91cdb2bfc /sca-cpp/trunk/modules/wsgi/jsonutil.py | |
parent | 55607ea78e10832838d52fdb17cbdfe4355c3265 (diff) |
Refactoring, rename isNil to isNull.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1428206 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/wsgi/jsonutil.py')
-rw-r--r-- | sca-cpp/trunk/modules/wsgi/jsonutil.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/wsgi/jsonutil.py b/sca-cpp/trunk/modules/wsgi/jsonutil.py index 849b44405b..f284fd1a89 100644 --- a/sca-cpp/trunk/modules/wsgi/jsonutil.py +++ b/sca-cpp/trunk/modules/wsgi/jsonutil.py @@ -28,19 +28,19 @@ from elemutil import * # Return true if a list represents a JS array def isJSArray(l): - if isNil(l): + if isNull(l): return True v = car(l) if isSymbol(v): return False if isList(v): - if not isNil(v) and isSymbol(car(v)): + if not isNull(v) and isSymbol(car(v)): return False return True # Converts JSON properties to values def jsPropertiesToValues(propertiesSoFar, o, i): - if isNil(i): + if isNull(i): return propertiesSoFar p = car(i) jsv = o[p] @@ -69,7 +69,7 @@ def jsValToValue(jsv): # Return true if a list of strings contains a JSON document def isJSON(l): - if isNil(l): + if isNull(l): return False s = car(l)[0:1] return s == "[" or s == "{" @@ -83,7 +83,7 @@ def readJSON(l): # Convert a list of values to JSON array elements def valuesToJSElements(a, l, i): - if isNil(l): + if isNull(l): return a pv = valueToJSVal(car(l)) a[i] = pv @@ -99,7 +99,7 @@ def valueToJSVal(v): # Convert a list of values to JSON properties def valuesToJSProperties(o, l): - if isNil(l): + if isNull(l): return o token = car(l) if isTaggedList(token, attribute): |