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