Skip to content

Commit 80ff18a

Browse files
authored
Update index.ts
1 parent 9c13839 commit 80ff18a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export class PythonShell extends EventEmitter{
135135
this.mode = options.mode || 'text';
136136
this.formatter = resolve('format', options.formatter || this.mode);
137137
this.parser = resolve('parse', options.parser || this.mode);
138+
// We don't expect users to ever format stderr as JSON so we default to text mode
138139
this.stderrParser = resolve('parse', options.stderrParser || 'text');
139140
this.terminated = false;
140141
this.childProcess = spawn(pythonPath, this.command, options);

0 commit comments

Comments
 (0)