natural / java2python

Simple but effective library to translate Java source code to Python.
GNU Lesser General Public License v2.1
564 stars 243 forks source link

bug: string.length() - 1 ==> 1 - len(string) #52

Open mw66 opened 6 years ago

mw66 commented 6 years ago

convert if ('%' == pct.charAt(pct.length() - 1)) {} into: if '%' == pct.charAt(1 - len(pct)):