pythonizer
pythonizer copied to clipboard
Complex hash RHS values produces syntax error in the generated code
Complex hash RHS values produces syntax error in the generated code. For example:
my %hop = ( "AClli" => $AClli,
"ZClli" => $ZClli,
"ID" => $circuitRow[$colNames{"ID"}],
"mileage" => $circuitRow[$colNames{"mileage"}],
"type" => $circuitRow[$colNames{"type"}]
);
produces:
hop = {'AClli': AClli, 'ZClli': ZClli,
'ID': circuitRow[colNames['ID']]:'mileage': circuitRow[colNames['mileage']],
'type': circuitRow[colNames['type']]}
Note the :
before mileage
instead of a ,
.
Fixed in https://github.com/snoopyjc/pythonizer