LogTransformer.visit_Assign¶
-
LogTransformer.
visit_Assign
(node)[source]¶ Filter assignments of target objects.
This function will filter all assignments of a target object to a variable. The assigned variable will be added to the target object list. For example, the hook will filter assignments of the form “log = logging.getLogg()” and add “log” to the target objects of the current module.