apply some codeql recommendations

- remove unused imports
- avoid overlaps of variable names with keywords
- make some exception processing more explicit
This commit is contained in:
Axel Kohlmeyer
2021-05-09 19:52:31 -04:00
parent 6d9309b76d
commit 69a92a3e00
4 changed files with 94 additions and 97 deletions

View File

@ -176,7 +176,7 @@ class AvgChunkFile:
current[data_column] = [value]
chunks_read += 1
assert (chunk == chunks_read)
assert chunk == chunks_read
else:
# do not support changing number of chunks
if not (num_chunks == int(parts[1])):