Skip to content

Commit a8fc280

Browse files
committed
spaces > tabs 🗡️
1 parent fd5d400 commit a8fc280

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)