eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py

changeset 8205
4a0f1f896341
parent 8204
fd477cded1c1
child 8209
14470a65a52e
equal deleted inserted replaced
8204:fd477cded1c1 8205:4a0f1f896341
667 for value, values in id2count.items(): 667 for value, values in id2count.items():
668 if len(values) == 1: 668 if len(values) == 1:
669 continue 669 continue
670 670
671 self.__error(node.lineno - 1, node.col_offset, "Y109", 671 self.__error(node.lineno - 1, node.col_offset, "Y109",
672 value, unparse(ast.List(elts=values)), 672 value, unparse(ast.Tuple(elts=values)),
673 unparse(node)) 673 unparse(node))
674 674
675 def __check110_111(self, node): 675 def __check110_111(self, node):
676 """ 676 """
677 Private method to check if any / all could be used. 677 Private method to check if any / all could be used.

eric ide

mercurial