def doWork(self, worker): response = http.openPage(worker.getConnection(), self.__page, self.__lastModified) if response.willClose(): worker.closeConnection() self.__callback(response.getData(), response.getLastModified(), response.getExpires())