Ticket #5709: trac_5709.patch

File trac_5709.patch, 1.1 KB (added by was, 12 years ago)
  • sage/interfaces/singular.py

    # HG changeset patch
    # User wstein@gmail.com
    # Date 1239155523 14400
    # Node ID 3775545bbccf16d39d89ee809f26d4b163fae269
    # Parent  c4f749bc9a5791be0305e0d5ccd974388f1db6fb
    trac 5709 -- singular interface -- use a smaller file size cutoff on solaris
    
    diff -r c4f749bc9a57 -r 3775545bbccf sage/interfaces/singular.py
    a b  
    267267#                  http://www.gnu.org/licenses/
    268268#*****************************************************************************
    269269
    270 import re
     270import os, re
    271271
    272272from expect import Expect, ExpectElement, FunctionElement, ExpectFunction
    273273
     
    316316                        restart_on_ctrlc = True,
    317317                        verbose_start = False,
    318318                        logfile = logfile,
    319                         eval_using_file_cutoff=1000)
     319                        eval_using_file_cutoff=100 if os.uname()[0]=="SunOS" else 1000)
    320320        self.__libs  = []
    321321        self._prompt_wait = prompt
    322322        self.__to_clear = []   # list of variable names that need to be cleared.