500 pos = [] |
500 pos = [] |
501 foundLeftQuote = False |
501 foundLeftQuote = False |
502 |
502 |
503 for index, character in enumerate(text): |
503 for index, character in enumerate(text): |
504 if foundLeftQuote is False: |
504 if foundLeftQuote is False: |
505 if character == "'" or character == '"': |
505 if character in ("'", '"'): |
506 foundLeftQuote = True |
506 foundLeftQuote = True |
507 quote = character |
507 quote = character |
508 leftPos = index |
508 leftPos = index |
509 else: |
509 else: |
510 if character == quote and text[index - 1] != "\\": |
510 if character == quote and text[index - 1] != "\\": |