don't add 'undefined' values
This commit is contained in:
parent
942dc7b38a
commit
38709c789e
6
index.js
6
index.js
|
@ -117,6 +117,12 @@ function stringifyPythonConf(obj, cb) {
|
||||||
var num = obj.__keys[key];
|
var num = obj.__keys[key];
|
||||||
var comment = '';
|
var comment = '';
|
||||||
|
|
||||||
|
if ('undefined' === typeof pyval) {
|
||||||
|
if ('number' === typeof num) {
|
||||||
|
obj.__lines[num] = "___DELETE_ME___";
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ('number' !== typeof num) {
|
if ('number' !== typeof num) {
|
||||||
obj.__lines.push(pykey + ' = ' + pyval);
|
obj.__lines.push(pykey + ' = ' + pyval);
|
||||||
|
|
Loading…
Reference in New Issue