mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Resolve warnings in generator code (#3350)
This commit is contained in:
@@ -238,7 +238,7 @@ Blockly.Python['math_change'] = function(block) {
|
||||
var argument0 = Blockly.Python.valueToCode(block, 'DELTA',
|
||||
Blockly.Python.ORDER_ADDITIVE) || '0';
|
||||
var varName = Blockly.Python.variableDB_.getName(block.getFieldValue('VAR'),
|
||||
Blockly.Variables.NAME_TYPE);
|
||||
Blockly.VARIABLE_CATEGORY_NAME);
|
||||
return varName + ' = (' + varName + ' if isinstance(' + varName +
|
||||
', Number) else 0) + ' + argument0 + '\n';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user