Skip to content

Commit 08b0650

Browse files
committed
spaces > tabs and i dare you to say otherwise
1 parent a327254 commit 08b0650

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

index.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -236,32 +236,32 @@ export class PythonShell extends EventEmitter{
236236
};
237237

238238
/**
239-
* checks syntax without executing code
240-
* @returns rejects promise w/ string error output if syntax failure
241-
*/
242-
static async checkSyntax(code:string){
239+
* checks syntax without executing code
240+
* @returns rejects promise w/ string error output if syntax failure
241+
*/
242+
static async checkSyntax(code:string){
243243
const randomInt = getRandomInt();
244244
const filePath = tmpdir() + sep + `pythonShellSyntaxCheck${randomInt}.py`
245245

246246
const writeFilePromise = promisify(writeFile)
247247
return writeFilePromise(filePath, code).then(()=>{
248248
return this.checkSyntaxFile(filePath)
249249
})
250-
}
250+
}
251251

252-
static getPythonPath(){
253-
return this.defaultOptions.pythonPath ? this.defaultOptions.pythonPath : this.defaultPythonPath;
252+
static getPythonPath(){
253+
return this.defaultOptions.pythonPath ? this.defaultOptions.pythonPath : this.defaultPythonPath;
254254
}
255255

256-
/**
257-
* checks syntax without executing code
258-
* @returns {Promise} rejects w/ stderr if syntax failure
259-
*/
260-
static async checkSyntaxFile(filePath:string){
256+
/**
257+
* checks syntax without executing code
258+
* @returns {Promise} rejects w/ stderr if syntax failure
259+
*/
260+
static async checkSyntaxFile(filePath:string){
261261
const pythonPath = this.getPythonPath()
262-
let compileCommand = `${pythonPath} -m py_compile ${filePath}`
262+
let compileCommand = `${pythonPath} -m py_compile ${filePath}`
263263
return execPromise(compileCommand)
264-
}
264+
}
265265

266266
/**
267267
* Runs a Python script and returns collected messages

0 commit comments

Comments
 (0)