Python Forum
finding a mismatched triple-quote in a huge module
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
finding a mismatched triple-quote in a huge module
#1
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?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
@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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  is this string shell quote safe? Skaperen 2 2,094 Feb-18-2020, 12:56 AM
Last Post: Skaperen
  finding which source files import a module Skaperen 3 2,428 Apr-22-2019, 09:28 PM
Last Post: Gribouillis
  Huge black friday power supply sale at EVGA Larz60+ 0 2,075 Nov-21-2018, 08:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020