mirror of
https://github.com/clearml/wexpect-venv
synced 2025-03-16 00:07:01 +00:00
[CLN][REM] Remove unused functions 02
This commit is contained in:
parent
7dd77eadcb
commit
c8c8922dda
26
wexpect.py
26
wexpect.py
@ -1251,22 +1251,6 @@ class spawn_unix (object):
|
|||||||
else: # something else caused the select.error, so this really is an exception
|
else: # something else caused the select.error, so this really is an exception
|
||||||
raise
|
raise
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
# The following methods are no longer supported or allowed.
|
|
||||||
|
|
||||||
def setmaxread (self, maxread):
|
|
||||||
|
|
||||||
"""This method is no longer supported or allowed. I don't like getters
|
|
||||||
and setters without a good reason. """
|
|
||||||
|
|
||||||
raise ExceptionPexpect ('This method is no longer supported or allowed. Just assign a value to the maxread member variable.')
|
|
||||||
|
|
||||||
def setlog (self, fileobject):
|
|
||||||
|
|
||||||
"""This method is no longer supported or allowed.
|
|
||||||
"""
|
|
||||||
|
|
||||||
raise ExceptionPexpect ('This method is no longer supported or allowed. Just assign a value to the logfile member variable.')
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# End of spawn_unix class
|
# End of spawn_unix class
|
||||||
@ -2446,16 +2430,6 @@ def log(e, suffix='', logdir=None):
|
|||||||
('%3f' % (ts - int(ts)))[2:5], e))
|
('%3f' % (ts - int(ts)))[2:5], e))
|
||||||
fout.close()
|
fout.close()
|
||||||
|
|
||||||
def excepthook(etype, value, tb):
|
|
||||||
log(''.join(traceback.format_exception(etype, value, tb)))
|
|
||||||
|
|
||||||
|
|
||||||
def which (filename):
|
|
||||||
from warnings import warn
|
|
||||||
warn("Which is deprecated. You should use shutil.which instead")
|
|
||||||
return shutil.which(filename)
|
|
||||||
|
|
||||||
|
|
||||||
def join_args(args):
|
def join_args(args):
|
||||||
"""Joins arguments into a command line. It quotes all arguments that contain
|
"""Joins arguments into a command line. It quotes all arguments that contain
|
||||||
spaces or any of the characters ^!$%&()[]{}=;'+,`~"""
|
spaces or any of the characters ^!$%&()[]{}=;'+,`~"""
|
||||||
|
Loading…
Reference in New Issue
Block a user