def run(self):
        if sys.version_info >= (2, 6):
            # Safe to use here because 2.6 provides server.shutdown().
            self.server.serve_forever()
        else:
            self.run_it = True
            while self.run_it == True:
                # WARNING: if this blocks and no request arrives, the server
                # may remain up indefinitely! FIXME?
                self.server.handle_request()
dataset/ETHPy150Open cjlee112/pygr/tests/testlib/megatest_utils.py/HTTPServerLauncher.run/original