aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/python.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2021-05-28 18:08:05 -0500
committerMatt Godbolt <matt@godbolt.org>2021-05-28 18:08:05 -0500
commita4edf7ed6bc51e73635faae652c631b4e0f13647 (patch)
tree53e1efb35bb97e2282226cb04c2d49405c463952 /lib/compilers/python.js
parentb5a6b45a9801d30998304b45d688701b943ae55f (diff)
downloadcompiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.tar.gz
compiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.zip
No array for each
Diffstat (limited to 'lib/compilers/python.js')
-rw-r--r--lib/compilers/python.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/python.js b/lib/compilers/python.js
index 4afd6acd5..085e5a193 100644
--- a/lib/compilers/python.js
+++ b/lib/compilers/python.js
@@ -46,7 +46,7 @@ export class PythonCompiler extends BaseCompiler {
let lastLineNo = null;
let sourceLoc = null;
- bytecodeLines.forEach(line => {
+ for (const line of bytecodeLines) {
const match = line.match(lineRe);
if (match) {
@@ -61,7 +61,7 @@ export class PythonCompiler extends BaseCompiler {
}
bytecodeResult.push({text: line, source: sourceLoc});
- });
+ }
return {asm: bytecodeResult};
}