redbaron
redbaron copied to clipboard
Comments in if-statements can chrash redbaron
This is valid python code, but chrashes redbaron:
if 42:
print 1
# This comment breaks the parser.
else:
print 2
Hello,
Thanks for reporting :) This is actually a baron's bug, you can find it here https://github.com/PyCQA/baron/issues/96 or there https://github.com/PyCQA/baron/issues/11
Ok, thanks for the references!
@runekaagaard I've pushed a fix on baron, can you test it and tells me if it works for you plz?