Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #33213: remove "remote cleaner" option from expect interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlitzky committed Feb 17, 2022
1 parent 955fdba commit a9df953
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 46 deletions.
37 changes: 0 additions & 37 deletions src/sage/interfaces/cleaner.py

This file was deleted.

7 changes: 1 addition & 6 deletions src/sage/interfaces/expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(self, name, prompt, command=None, env={}, server=None,
script_subdirectory=None, restart_on_ctrlc=False,
verbose_start=False, init_code=[], max_startup_time=None,
logfile=None, eval_using_file_cutoff=0,
do_cleaner=True, remote_cleaner=False, path=None,
do_cleaner=True, path=None,
terminal_echo=True):

Interface.__init__(self, name)
Expand All @@ -144,7 +144,6 @@ def __init__(self, name, prompt, command=None, env={}, server=None,
if script_subdirectory is None:
script_subdirectory = os.getenv(env_name.format('SCRIPT_SUBDIRECTORY'))
self.__is_remote = False
self.__remote_cleaner = remote_cleaner
self._expect = None
self._eval_using_file_cutoff = eval_using_file_cutoff
self.__verbose_start = verbose_start
Expand Down Expand Up @@ -471,10 +470,6 @@ def _start(self, alt_message=None, block_during_init=True):
print(cmd)
print("Starting %s" % cmd.split()[0])

if self.__remote_cleaner and self._server:
c = 'sage-native-execute ssh %s "nohup sage -cleaner" &' % self._server
os.system(c)

# Unset some environment variables for the children to
# reduce the chances they do something complicated breaking
# the terminal interface.
Expand Down
1 change: 0 additions & 1 deletion src/sage/interfaces/gap3.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def __init__(self, command=gap3_cmd):
logfile=None,
eval_using_file_cutoff=100,
do_cleaner=True,
remote_cleaner=False,
path=None)

def _start(self):
Expand Down
2 changes: 0 additions & 2 deletions src/sage/interfaces/sage0.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def __init__(self,
init_code=None,
server=None,
server_tmpdir=None,
remote_cleaner=True,
**kwds):
"""
EXAMPLES::
Expand Down Expand Up @@ -194,7 +193,6 @@ def _sage0_load_remote(filename):
init_code=init_code,
server=server,
server_tmpdir=server_tmpdir,
remote_cleaner=remote_cleaner,
**kwds
)
self._preparse = preparse
Expand Down

0 comments on commit a9df953

Please sign in to comment.