File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ export class PythonShell extends EventEmitter{
206206 let filePath = tmpdir + sep + `pythonShellSyntaxCheck${ randomInt } .py`
207207
208208 // todo: replace this with util.promisify (once we no longer support node v7)
209- return new Promise ( ( resolve , reject ) => {
209+ return new Promise ( ( resolve , reject ) => {
210210 writeFile ( filePath , code , ( err ) => {
211211 if ( err ) reject ( err ) ;
212212 resolve ( this . checkSyntaxFile ( filePath ) ) ;
@@ -221,14 +221,14 @@ export class PythonShell extends EventEmitter{
221221 */
222222 static async checkSyntaxFile ( filePath :string ) {
223223
224- let compileCommand = `${ this . defaultPythonPath } -m py_compile ${ filePath } `
224+ let compileCommand = `${ this . defaultPythonPath } -m py_compile ${ filePath } `
225225
226- return new Promise ( ( resolve , reject ) => {
227- exec ( compileCommand , ( error , stdout , stderr ) => {
228- if ( error == null ) resolve ( )
229- else reject ( stderr )
230- } )
231- } )
226+ return new Promise ( ( resolve , reject ) => {
227+ exec ( compileCommand , ( error , stdout , stderr ) => {
228+ if ( error == null ) resolve ( )
229+ else reject ( stderr )
230+ } )
231+ } )
232232 }
233233
234234 /**
You can’t perform that action at this time.
0 commit comments