Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py

changeset 5616
adcffadf4962
parent 5588
6ba512d9f46a
child 6048
82ad8ec9548c
equal deleted inserted replaced
5615:2c9c2d67e4d8 5616:adcffadf4962
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):

eric ide

mercurial