Ticket #7377: trac_7377-interface-namefix.patch

File trac_7377-interface-namefix.patch, 1.4 KB (added by nbruin, 8 years ago)

Fixes gap3 timeout problem

  • sage/interfaces/expect.py

    # HG changeset patch
    # User Nils Bruin <nbruin@sfu.ca>
    # Date 1298833513 28800
    # Node ID 9f44b5a78ab2e2ed05e82e005a32313e056bf93c
    # Parent  d9e8a845324f0356d7c0d967bc731b54f637c4cb
    Change name() to self.name() in several places
    
    diff -r d9e8a845324f -r 9f44b5a78ab2 sage/interfaces/expect.py
    a b  
    437437        except (ExceptionPexpect, pexpect.EOF, IndexError):
    438438            self._expect = None
    439439            self._session_number = BAD_SESSION
    440             failed_to_start.append(name())
     440            failed_to_start.append(self.name())
    441441            raise RuntimeError, "Unable to start %s because the command '%s' failed.\n%s"%(
    442                 name(), cmd, self._install_hints())
     442                self.name(), cmd, self._install_hints())
    443443
    444444        os.chdir(current_path)
    445445        self._expect.timeout = self.__max_startup_time
     
    452452        except (pexpect.TIMEOUT, pexpect.EOF), msg:
    453453            self._expect = None
    454454            self._session_number = BAD_SESSION
    455             failed_to_start.append(name())
    456             raise RuntimeError, "Unable to start %s"%name()
     455            failed_to_start.append(self.name())
     456            raise RuntimeError, "Unable to start %s"%self.name()
    457457        self._expect.timeout = None
    458458        with gc_disabled():
    459459            if block_during_init: