2719 |
2719 |
2720 @param line line to work at (string) |
2720 @param line line to work at (string) |
2721 @return number of unmatched open/close brackets (integer) |
2721 @return number of unmatched open/close brackets (integer) |
2722 """ |
2722 """ |
2723 count = 0 |
2723 count = 0 |
2724 for opening, closing in ['()', '[]', '{}']: |
2724 for opening, closing in ['()', '[]', '{}']: # __IGNORE_WARNING__ |
2725 count += abs(line.count(opening) - line.count(closing)) |
2725 count += abs(line.count(opening) - line.count(closing)) |
2726 |
2726 |
2727 return count |
2727 return count |
2728 |
2728 |
2729 def __getIndent(self, line): |
2729 def __getIndent(self, line): |