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