diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-12-28 11:42:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 11:42:14 -0600 |
commit | 749319f7912ff479d25d9afb1e751f4ea704b0e2 (patch) | |
tree | 6f1504440fcdaf033dc406d454bb00299b0d8fa6 /lib/compilers/python.ts | |
parent | b597095f6ee657e6b1fde4b02f9bb2f61457d225 (diff) | |
download | compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.tar.gz compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.zip |
Slightly more controversial bumpings (#4503)gh-5552
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version
applies new tslint stuff
Diffstat (limited to 'lib/compilers/python.ts')
-rw-r--r-- | lib/compilers/python.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/python.ts b/lib/compilers/python.ts index 1036f2222..eaf1092d7 100644 --- a/lib/compilers/python.ts +++ b/lib/compilers/python.ts @@ -60,11 +60,11 @@ export class PythonCompiler extends BaseCompiler { const lineno = parseInt(match[1]); sourceLoc = {line: lineno, file: null}; lastLineNo = lineno; - } else if (!line) { + } else if (line) { + sourceLoc = {line: lastLineNo, file: null}; + } else { sourceLoc = {line: undefined, file: null}; lastLineNo = undefined; - } else { - sourceLoc = {line: lastLineNo, file: null}; } bytecodeResult.push({text: line, source: sourceLoc}); |