@@ -262,11 +262,11 @@ Example:
262262
263263``` typescript
264264// send a message in text mode
265- let shell = new PythonShell (' script.py' , { mode: ' text ' });
265+ let shell = new PythonShell (' script.py' , { mode: ' text' });
266266shell .send (' hello world!' );
267267
268268// send a message in JSON mode
269- let shell = new PythonShell (' script.py' , { mode: ' json ' });
269+ let shell = new PythonShell (' script.py' , { mode: ' json' });
270270shell .send ({ command: " do_stuff" , args: [1 , 2 , 3 ] });
271271```
272272
@@ -294,13 +294,13 @@ Example:
294294
295295``` typescript
296296// receive a message in text mode
297- let shell = new PythonShell (' script.py' , { mode: ' text ' });
297+ let shell = new PythonShell (' script.py' , { mode: ' text' });
298298shell .on (' message' , function (message ) {
299299 // handle message (a line of text from stdout)
300300});
301301
302302// receive a message in JSON mode
303- let shell = new PythonShell (' script.py' , { mode: ' json ' });
303+ let shell = new PythonShell (' script.py' , { mode: ' json' });
304304shell .on (' message' , function (message ) {
305305 // handle message (a line of text from stdout, parsed as JSON)
306306});
@@ -314,7 +314,7 @@ Example:
314314
315315``` typescript
316316// receive a message in text mode
317- let shell = new PythonShell (' script.py' , { mode: ' text ' });
317+ let shell = new PythonShell (' script.py' , { mode: ' text' });
318318shell .on (' stderr' , function (stderr ) {
319319 // handle stderr (a line of text from stderr)
320320});
0 commit comments