Python Forum

Full Version: finding a mismatched triple-quote in a huge module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm trying to find a mismatched triple-quote in a huge module file. it's way too big to look over by eye. maybe there is a script that can do it by recognizing code outside of supposed triple quotes and reporting the line number where this fail?
@Skaperen,
The easiest way that I can think of is by using Pycharm IDE. (https://www.jetbrains.com/pycharm/). Just open your code in Pycharm, then
Code > Reformat
(or)
Select all of your code and type Ctrl + Alt + L, that might help.