Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

changeset 4543
2e6a880670e9
parent 4445
5636dc48e1a0
child 4631
5c1a96925da4
equal deleted inserted replaced
4540:45627d092846 4543:2e6a880670e9
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