src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/SimplifyNodeVisitor.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11147
dee6e106b4d3
child 11150
73d80859079c
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
1779 """ 1779 """
1780 Private method to check for unnecessary nesting of os.path.join(). 1780 Private method to check for unnecessary nesting of os.path.join().
1781 1781
1782 @param node reference to the AST node to be checked 1782 @param node reference to the AST node to be checked
1783 @type ast.Call 1783 @type ast.Call
1784 """ # __IGNORE_WARNING_D234r__ 1784 """ # __IGNORE_WARNING_D-234r__
1785 1785
1786 def getOsPathJoinArgs(node): 1786 def getOsPathJoinArgs(node):
1787 names = [] 1787 names = []
1788 for arg in node.args: 1788 for arg in node.args:
1789 if ( 1789 if (
1935 node.lineno - 1, node.col_offset, "Y-911", firstArg.func.value.id 1935 node.lineno - 1, node.col_offset, "Y-911", firstArg.func.value.id
1936 ) 1936 )
1937 1937
1938 1938
1939 # 1939 #
1940 # eflag: noqa = M891 1940 # eflag: noqa = M-891

eric ide

mercurial