Skip to content

Commit 148d012

Browse files
author
Troy Melhase
committed
Changed single % characters to %% in expression format strings.
1 parent 38153c4 commit 148d012

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java2python/lib/walker.g

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ returns [exp = block.unknownExpression]
544544
{exp = ("%s /= %s", (left, right))}
545545

546546
| #(MOD_ASSIGN left=expr[block] right=expr[block])
547-
{exp = ("%s %= %s", (left, right))}
547+
{exp = ("%s %%= %s", (left, right))}
548548

549549
| #(SR_ASSIGN left=expr[block] right=expr[block])
550550
{exp = ("%s >>= %s", (left, right))}
@@ -623,7 +623,7 @@ returns [exp = block.unknownExpression]
623623
{exp = ("%s / %s", (left, right))}
624624

625625
| #(MOD left=expr[block] right=expr[block])
626-
{exp = ("%s % %s", (left, right))}
626+
{exp = ("%s %% %s", (left, right))}
627627

628628
| #(STAR left=expr[block] right=expr[block])
629629
{exp = ("%s * %s", (left, right))}

0 commit comments

Comments
 (0)