def visit_Import(self, node):
     if self.checking_import:
         for name in node.names:
             if isinstance(name, ast.alias) and import_check(
                     self.url_inspect, self.fct_inspect_url,
                     self.fct_inspect, name.name, None):
                 self.import_true = True
     self.generic_visit(node)
 def visit_ImportFrom(self, node):
     if self.checking_import:
         if import_check(self.url_inspect, self.fct_inspect_url,
                         self.fct_inspect, node.module, node.names):
             self.import_true = True
     self.generic_visit(node)