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
2 years ago
209 | 209 | self._buffer = data |
210 | 210 | self._buffer_len = len(data) |
211 | 211 | self._buffer_pos = 0 |
212 | self._debug = debug | |
213 | 212 | self._max_block_len = 4096 |
214 | 213 | self._stream = stream |
215 | 214 | self._terminated = False |
432 | 431 | def run( |
433 | 432 | command, |
434 | 433 | timeout=None, |
435 | debug=False, | |
434 | debug=None, | |
436 | 435 | stdin=None, |
437 | 436 | print_stdout=True, |
438 | 437 | print_stderr=True, |
452 | 451 | |
453 | 452 | :param array command: Command line to be run, specified as array. |
454 | 453 | :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) | |
456 | 455 | :param stdin: Optional bytestring that is passed to command stdin. |
457 | 456 | :param boolean print_stdout: Pass stdout through to sys.stdout. |
458 | 457 | :param boolean print_stderr: Pass stderr through to sys.stderr. |
486 | 485 | else: |
487 | 486 | assert sys.platform != "win32", "stdin argument not supported on Windows" |
488 | 487 | 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 | ) | |
489 | 492 | |
490 | 493 | start_time = timeit.default_timer() |
491 | 494 | if timeout is not None: |