Update Python value of null/undefined/empty.

This commit is contained in:
Mike Stegeman 2017-10-30 07:56:40 -06:00 committed by Andre Natal
parent e0a28b434e
commit 254eb3beda
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ function parsePythonConf(str, cb) {
}
function toPyVal(val) {
if (null === val) {
if (null === val || '' === val) {
return 'None';
}
else if (true === val) {
@ -119,7 +119,7 @@ function stringifyPythonConf(obj, cb) {
if ('undefined' === typeof pyval) {
if ('number' === typeof num) {
pyval = '';
pyval = 'None';
} else {
return;
}