def __getattr__(self, name):
        function = self.api.http.versioned.get(self.api_version, {}).get(name, None)
        if not function:
            function = self.api.http.versioned.get(None, {}).get(name, None)
        if not function:
            raise AttributeError('API Function {0} not found'.format(name))

        accepts = function.interface.arguments
        if 'hug_api_version' in accepts:
            function = partial(function, hug_api_version=self.api_version)
        if accepts in 'hug_current_api':
            function = partial(function, hug_current_api=self)

        return function
dataset/ETHPy150Open timothycrosley/hug/hug/directives.py/CurrentAPI.__getattr__/swapped operands of `in`