Skip to content

Commit e2f9310

Browse files
committed
Default value for variable should be None, not Object()
1 parent d48c30a commit e2f9310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java2python/lib/walker.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ variable_def [block, append = True]
244244
)
245245
{
246246
if val == block.emptyAssign:
247-
val = ("%s", block.config.combined("typeValueMap").get(typ, "%s()" % typ))
247+
val = ("%s", block.config.combined("typeValueMap").get(typ, "None"))
248248
var.setName(dec[1])
249249
var.setExpression(val)
250250
if append or var.isStatic:

0 commit comments

Comments
 (0)