Skip to content

Commit b8c5e9f

Browse files
committed
Map from to from_
1 parent e58fb46 commit b8c5e9f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

java2python/lib/defaultconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
'and':'and_',
117117
'del':'del_',
118118
'elif':'elif_',
119+
'from':'from_',
119120
'in':'in_',
120121
'is':'is_',
121122
'not':'not_',
@@ -133,6 +134,7 @@
133134
'and':'and_',
134135
'del':'del_',
135136
'elif':'elif_',
137+
'from':'from_',
136138
'in':'in_',
137139
'is':'is_',
138140
'not':'not_',
@@ -171,6 +173,7 @@
171173
'and':'and_',
172174
'del':'del_',
173175
'elif':'elif_',
176+
'from':'from_',
174177
'in':'in_',
175178
'is':'is_',
176179
'not':'not_',

java2python/tests/Keywords.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ public static void main(String[] args) {
1111
String elif = "this is elif";
1212
Assert.assertEquals(elif, "this is elif");
1313

14+
String from = "this is from";
15+
Assert.assertEquals(elif, "this is from");
16+
1417
String in = "this is in";
1518
Assert.assertEquals(in, "this is in");
1619

0 commit comments

Comments
 (0)