Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

branch
6_1_x
changeset 4541
e8ddd9d76414
parent 4445
5636dc48e1a0
child 4631
5c1a96925da4
equal deleted inserted replaced
4539:beac8323fa9e 4541:e8ddd9d76414
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):

eric ide

mercurial