aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/python.js
diff options
context:
space:
mode:
authorRabsRincon <ruben@rinconblanco.es>2020-01-08 13:49:23 +0100
committerRabsRincon <ruben@rinconblanco.es>2020-01-08 13:49:23 +0100
commit885aee1c63203f5868ac310e8592982f1519454c (patch)
tree25dc3bffd3a876f59f30e0e6bbcd9655a9da02e7 /lib/compilers/python.js
parentea25a2a3dbd308f349e48ee2158c80de2fbb1535 (diff)
downloadcompiler-explorer-885aee1c63203f5868ac310e8592982f1519454c.tar.gz
compiler-explorer-885aee1c63203f5868ac310e8592982f1519454c.zip
Remove last remaining vars and fix formatting
Diffstat (limited to 'lib/compilers/python.js')
-rw-r--r--lib/compilers/python.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compilers/python.js b/lib/compilers/python.js
index 15f42d0b8..ef362732a 100644
--- a/lib/compilers/python.js
+++ b/lib/compilers/python.js
@@ -40,12 +40,12 @@ class PythonCompiler extends BaseCompiler {
const bytecodeLines = result.asm.split("\n");
- var bytecodeResult = [];
- var lastLineNo = null;
- var sourceLoc = null;
+ const bytecodeResult = [];
+ let lastLineNo = null;
+ let sourceLoc = null;
bytecodeLines.forEach(line => {
- var match = line.match(lineRe);
+ const match = line.match(lineRe);
if (match) {
const lineno = parseInt(match[1]);