Method: pylint.checkers.stdlib.StdlibChecker._check_shallow_copy_environ
Calls: 5, Exceptions: 1, Paths: 3Back
Path 1: 2 calls (0.4)
Call (2)
1def _check_shallow_copy_environ(self, node: nodes.Call) -> None:
2 arg = utils.get_argument_from_call(node, position=0)
3 try:
4 inferred_args = arg.inferred()
5 except astroid.InferenceError:
6 return
7 for inferred in inferred_args:
8 if inferred.qname() == OS_ENVIRON:
9 self.add_message("shallow-copy-environ", node=node)
10 break
Path 2: 2 calls (0.4)
Call (2)
1def _check_shallow_copy_environ(self, node: nodes.Call) -> None:
2 arg = utils.get_argument_from_call(node, position=0)
3 try:
4 inferred_args = arg.inferred()
5 except astroid.InferenceError:
6 return
7 for inferred in inferred_args:
8 if inferred.qname() == OS_ENVIRON:
9 self.add_message("shallow-copy-environ", node=node)
10 break
Path 3: 1 calls (0.2)
Call (1)
None (1)
InferenceError (1)
1def _check_shallow_copy_environ(self, node: nodes.Call) -> None:
2 arg = utils.get_argument_from_call(node, position=0)
3 try:
4 inferred_args = arg.inferred()
5 except astroid.InferenceError:
6 return
7 for inferred in inferred_args:
8 if inferred.qname() == OS_ENVIRON:
9 self.add_message("shallow-copy-environ", node=node)
10 break