def _get_http(self):
        self.logger.info('Trying to open url %s' % self.url)
        webfile = urllib2.urlopen(self.url)
        try:
            tasks = json.loads(webfile.read())
            self.logger.info('Found %d task(s), processing...' % len(tasks))
        except __HOLE__, err:
            raise Exception('Error while loading json: {0}'.format(err))
        finally:
            webfile.close()
        return tasks
dataset/ETHPy150Open comodit/synapse-agent/synapse/resourcefile.py/ResourceFile._get_http