We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d15bbb9 commit 6d64079Copy full SHA for 6d64079
1 file changed
index.ts
@@ -6,6 +6,7 @@ import { Readable, Writable } from 'stream'
6
import { writeFile, writeFileSync } from 'fs';
7
import { promisify } from 'util';
8
9
+
10
function toArray<T>(source?:T|T[]):T[] {
11
if (typeof source === 'undefined' || source === null) {
12
return [];
@@ -135,7 +136,7 @@ export class PythonShell extends EventEmitter{
135
136
this.mode = options.mode || 'text';
137
this.formatter = resolve('format', options.formatter || this.mode);
138
this.parser = resolve('parse', options.parser || this.mode);
- this.stderrParser = resolve('parse', options.stderrParser || this.mode);
139
+ this.stderrParser = resolve('parse', options.stderrParser || 'text');
140
this.terminated = false;
141
this.childProcess = spawn(pythonPath, this.command, options);
142
0 commit comments