def __getattr__(self, name):
        '''Returns any existing attr for the wrapped module or returns a mock
        function for anything else. Never raises an AttributeError.
        '''
        try:
            return getattr(self.wrapped, name)
        except AttributeError:
            def func(*args, **kwargs):
                '''A mock function which returns itself, enabling chainable
                function calls.
                '''
                log.warning('The %s method has not been implented on the CLI. '
                            'Your code might not work properly when calling '
                            'it.', name)
                return self
            return func
def __getattr__ ( self , name ) : try : return getattr ( self . wrapped , name ) except AttributeError : def func ( * args , ** kwargs ) : log . warning ( 'The %s method has not been implented on the CLI. ' 'Your code might not work properly when calling ' 'it.' , name ) return self return func
Returns any existing attr for the wrapped module or returns a mock
        function for anything else. Never raises an AttributeError.