codeshovel
codeshovel copied to clipboard
Investigate EOF Python Function Exception
From #62
I'm actually not sure how this ever worked. I want to merge this but I need to look a bit more. When a file is split up trailing whitespace is removed, but the Python parser puts the end of a node as right before the beginning of the next node, which in the case of the final function in a file is the EOF. So if a file ends with a newline you'll always end up with an out of bounds exception. I stepped through and everything was right and predictable with the latest changes. I have no idea how this was being obfuscated on develop, but I think this is enough for tonight.
Just figure out how this could have been working and double check that it is indeed working now.