(self, node: ast.ImportFrom,
                                   names_to_replace: Dict[str, Tuple[str, str]])
return self.wrapper.get_body(previous=node,  # type: ignore
                                     current=rewrotes)[0]
Replaces import from with try/except with old and new 
        import module and names.
Replaces import from with try/except with old and new 
        import module and names.
Replaces import from with try / except with old and new import module and names .
def _replace_import_from_names(self, node: ast.ImportFrom,
                                   names_to_replace: Dict[str, Tuple[str, str]]) -> ast.Try:
        """Replaces import from with try/except with old and new 
        import module and names.
        
        """
        self._tree_changed = True

        rewrotes = [
            self._get_replaced_import_from_part(node, alias, names_to_replace)
            for alias in node.names]

        return self.wrapper.get_body(previous=node,  # type: ignore
                                     current=rewrotes)[0]
def _replace_import_from_names ( self , node : ast . ImportFrom , names_to_replace : Dict [ str , Tuple [ str , str ] ] ) -> ast . Try : self . _tree_changed = True rewrotes = [ self . _get_replaced_import_from_part ( node , alias , names_to_replace ) for alias in node . names ] return self . wrapper . get_body ( previous = node , # type: ignore current = rewrotes ) [ 0 ]