##// END OF EJS Templates
Remove utils.autoattr
Thomas Kluyver -
Show More
@@ -22,7 +22,6 b' import sys'
22 from IPython.external import pexpect
22 from IPython.external import pexpect
23
23
24 # Our own
24 # Our own
25 from .autoattr import auto_attr
26 from ._process_common import getoutput, arg_split
25 from ._process_common import getoutput, arg_split
27 from IPython.utils import py3compat
26 from IPython.utils import py3compat
28 from IPython.utils.encoding import DEFAULT_ENCODING
27 from IPython.utils.encoding import DEFAULT_ENCODING
@@ -55,14 +54,15 b' class ProcessHandler(object):'
55 logfile = None
54 logfile = None
56
55
57 # Shell to call for subprocesses to execute
56 # Shell to call for subprocesses to execute
58 sh = None
57 _sh = None
59
58
60 @auto_attr
61 def sh(self):
59 def sh(self):
62 sh = pexpect.which('sh')
60 if self._sh is None:
63 if sh is None:
61 self._sh = pexpect.which('sh')
64 raise OSError('"sh" shell not found')
62 if self._sh is None:
65 return sh
63 raise OSError('"sh" shell not found')
64
65 return self._sh
66
66
67 def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None):
67 def __init__(self, logfile=None, read_timeout=None, terminate_timeout=None):
68 """Arguments are used for pexpect calls."""
68 """Arguments are used for pexpect calls."""
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now