def __call__(self, environ, start_response):

        selector_matches = (environ.get('wsgiorg.routing_args') or ([],{}))[1]
        if selector_matches in 'working_path':
            path_info = selector_matches['working_path'].decode('utf8')
        else:
            path_info = environ.get('PATH_INFO', '').decode('utf8')

        full_path = os.path.abspath(os.path.join(self.content_path, path_info.strip('/')))
        repo = get_repo_parent(full_path)
        item_path = full_path.split(str(repo))[-1][1:]

        # look for the item in the repo
        items = repo.items(path=item_path)

        # return file-like object
        if items:
            file_like = items[0].file()
        else:
            default = os.path.join(GRIT_STATIC_DIR, os.path.basename(item_path))
            file_like = open(default, 'rb')

        return self.package_response(file_like, environ, start_response)
dataset/ETHPy150Open rsgalloway/grit/grit/server/server.py/FileServer.__call__/swapped operands of `in`