283 |
283 |
284 if len(context.callArgs) and context.callFunctionNameQual in functionNames: |
284 if len(context.callArgs) and context.callFunctionNameQual in functionNames: |
285 node = context.node.args[0] |
285 node = context.node.args[0] |
286 |
286 |
287 # some calls take an arg list, check the first part |
287 # some calls take an arg list, check the first part |
288 if isinstance(node, ast.List): |
288 if isinstance(node, ast.List) and node.elts: |
289 node = node.elts[0] |
289 node = node.elts[0] |
290 |
290 |
291 # make sure the param is a string literal and not a var name |
291 # make sure the param is a string literal and not a var name |
292 if AstUtilities.isString(node) and not fullPathMatchRe.match(node.value): |
292 if AstUtilities.isString(node) and not fullPathMatchRe.match(node.value): |
293 reportError( |
293 reportError( |