def visit_importfrom(self, node):
        '''triggered when a from statement is seen'''
        module_filename = node.root().file
        if fnmatch.fnmatch(module_filename, '__init__.py*') and \
                not fnmatch.fnmatch(module_filename, 'test_*.py*'):
            return
        basename = node.modname
        self._check_blacklisted_module(node, basename)
def visit_importfrom ( self , node ) : module_filename = node . root ( ) . file if fnmatch . fnmatch ( module_filename , '__init__.py*' ) and not fnmatch . fnmatch ( module_filename , 'test_*.py*' ) : return basename = node . modname self . _check_blacklisted_module ( node , basename )
triggered when a from statement is seen