Hierosoft / pycodetool

Code conversion tools, mostly just for removing dependencies so far. Eliminates various issues and .NET calls such as introduced by icsharpcode snippet converter C# to Python translation. NOTE: Should be rewritten to use SLY.
GNU General Public License v2.0
1 stars 1 forks source link

Change Substring to slice #11

Open Poikilos opened 3 years ago

Poikilos commented 3 years ago

line.Substring(numberStart, index - numberStart) should be line[numberStart:index] (a practical solution, since there is no prior knowledge of the implementation, is to make it line[numberStart:index - numberStart + numberStart])