2582 def __normalizeMultiline(self, text): |
2582 def __normalizeMultiline(self, text): |
2583 """ |
2583 """ |
2584 Private method to remove multiline-related code that will cause syntax |
2584 Private method to remove multiline-related code that will cause syntax |
2585 error. |
2585 error. |
2586 |
2586 |
2587 @param line code line to work on (string) |
2587 @param text code line to work on (string) |
2588 @return normalized code line (string) |
2588 @return normalized code line (string) |
2589 """ |
2589 """ |
2590 for quote in '\'"': |
2590 for quote in '\'"': |
2591 dictPattern = r"^{q}[^{q}]*{q} *: *".format(q=quote) |
2591 dictPattern = r"^{q}[^{q}]*{q} *: *".format(q=quote) |
2592 if re.match(dictPattern, text): |
2592 if re.match(dictPattern, text): |