parameters: (self, parent, node, full_name)
return_statement: return False
docstring: Wraps node (typically, an Attribute or Expr) in a Call.
docstring_summary: Wraps node (typically, an Attribute or Expr) in a Call.
docstring_tokens: Wraps node ( typically an Attribute or Expr ) in a Call .
function: def _maybe_change_to_function_call(self, parent, node, full_name):
      """Wraps node (typically, an Attribute or Expr) in a Call."""
      if full_name in self._api_change_spec.change_to_function:
        if not isinstance(parent, ast.Call):
          # ast.Call's constructor is really picky about how many arguments it
          # wants, and also, it changed between Py2 and Py3.
          new_node = ast.Call(node, [], [])
          pasta.ast_utils.replace_child(parent, node, new_node)
          ast.copy_location(new_node, node)
          self.add_log(INFO, node.lineno, node.col_offset,
                       "Changed %r to a function call" % full_name)
          return True
      return False
function_tokens: def _maybe_change_to_function_call ( self , parent , node , full_name ) : if full_name in self . _api_change_spec . change_to_function : if not isinstance ( parent , ast . Call ) : # ast.Call's constructor is really picky about how many arguments it # wants, and also, it changed between Py2 and Py3. new_node = ast . Call ( node , [ ] , [ ] ) pasta . ast_utils . replace_child ( parent , node , new_node ) ast . copy_location ( new_node , node ) self . add_log ( INFO , node . lineno , node . col_offset , "Changed %r to a function call" % full_name ) return True return False