Package list python-procrunner / 0bf93b9
Deprecate the debug parameter This is currently only used for NBSR/NBSW debugging, and otherwise superseded by python logging framework functionality. It's likely that NBSR/NBSW are on their way out, thus in a future release this keyword argument will be removed. Markus Gerstel 1 year, 4 months ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
209209 self._buffer = data
210210 self._buffer_len = len(data)
211211 self._buffer_pos = 0
212 self._debug = debug
213212 self._max_block_len = 4096
214213 self._stream = stream
215214 self._terminated = False
432431 def run(
433432 command,
434433 timeout=None,
435 debug=False,
434 debug=None,
436435 stdin=None,
437436 print_stdout=True,
438437 print_stderr=True,
452451
453452 :param array command: Command line to be run, specified as array.
454453 :param timeout: Terminate program execution after this many seconds.
455 :param boolean debug: Enable further debug messages.
454 :param boolean debug: Enable further debug messages. (deprecated)
456455 :param stdin: Optional bytestring that is passed to command stdin.
457456 :param boolean print_stdout: Pass stdout through to sys.stdout.
458457 :param boolean print_stderr: Pass stderr through to sys.stderr.
486485 else:
487486 assert sys.platform != "win32", "stdin argument not supported on Windows"
488487 stdin_pipe = subprocess.PIPE
488 if debug is not None:
489 warnings.warn(
490 "Use of the debug parameter is deprecated", DeprecationWarning, stacklevel=2
491 )
489492
490493 start_time = timeit.default_timer()
491494 if timeout is not None: