Apply new lint rules in more packages (#15521)

This commit is contained in:
Andy
2017-03-30 12:33:22 -07:00
committed by GitHub
parent 4173a37d30
commit 4cac3c5b44
59 changed files with 503 additions and 544 deletions

View File

@@ -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');
});
});