mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-31 10:44:33 +00:00
Apply new lint rules in more packages (#15521)
This commit is contained in:
@@ -7,7 +7,7 @@ ps.run('my_script.py', err => {
|
||||
console.log('finished');
|
||||
});
|
||||
|
||||
var options = {
|
||||
const options = {
|
||||
mode: 'text',
|
||||
pythonPath: 'path/to/python',
|
||||
pythonOptions: ['-u'],
|
||||
@@ -21,7 +21,7 @@ ps.run('my_script.py', options, (err, results) => {
|
||||
console.log('results: %j', results);
|
||||
});
|
||||
|
||||
var pyshell = new PythonShell('my_script.py');
|
||||
const pyshell = new PythonShell('my_script.py');
|
||||
|
||||
// sends a message to the Python script via stdin
|
||||
pyshell.send('hello');
|
||||
@@ -35,4 +35,4 @@ pyshell.on('message', message => {
|
||||
pyshell.end(err => {
|
||||
if (err) throw err;
|
||||
console.log('finished');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user