don't add 'undefined' values

This commit is contained in:
AJ ONeal 2016-02-11 13:34:40 -05:00
parent 942dc7b38a
commit 38709c789e
1 changed files with 6 additions and 0 deletions

View File

@ -117,6 +117,12 @@ function stringifyPythonConf(obj, cb) {
var num = obj.__keys[key];
var comment = '';
if ('undefined' === typeof pyval) {
if ('number' === typeof num) {
obj.__lines[num] = "___DELETE_ME___";
}
return;
}
if ('number' !== typeof num) {
obj.__lines.push(pykey + ' = ' + pyval);