Skip to content

Commit 39a0323

Browse files
committed
output switch equals cases with spaces around operator
1 parent 2e92c6e commit 39a0323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java2python/compiler/visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def acceptSwitch(self, node, memo):
517517
# we have at least one node...
518518
parExpr = self.factory.expr(parent=self)
519519
parExpr.walk(parNode, memo)
520-
eqFs = FS.l + '==' + FS.r
520+
eqFs = FS.l + ' == ' + FS.r
521521
for caseIdx, caseNode in enumerate(caseNodes):
522522
isDefault, isFirst = caseNode.type==tokens.DEFAULT, caseIdx==0
523523

0 commit comments

Comments
 (0)