(self)
return functools.reduce(getattr, attrs, module)
Load the entry point from its definition. If only a module
        is indicated by the value, return that module. Otherwise,
        return the named object.
Load the entry point from its definition. If only a module
        is indicated by the value, return that module. Otherwise,
        return the named object.
Load the entry point from its definition . If only a module is indicated by the value return that module . Otherwise return the named object .
def load(self):
        """Load the entry point from its definition. If only a module
        is indicated by the value, return that module. Otherwise,
        return the named object.
        """
        match = self.pattern.match(self.value)
        module = import_module(match.group('module'))
        attrs = filter(None, (match.group('attr') or '').split('.'))
        return functools.reduce(getattr, attrs, module)
def load ( self ) : match = self . pattern . match ( self . value ) module = import_module ( match . group ( 'module' ) ) attrs = filter ( None , ( match . group ( 'attr' ) or '' ) . split ( '.' ) ) return functools . reduce ( getattr , attrs , module )