code check

This commit is contained in:
Trilarion
2020-08-11 14:01:21 +02:00
parent 1ca7c6c12d
commit 30a252a43f
16 changed files with 285 additions and 198 deletions

View File

@ -289,7 +289,7 @@ def load_properties(filepath, sep='=', comment_char='#'):
line = line.strip()
if not line.startswith(comment_char):
line = line.split(sep)
assert(len(line)==2)
assert (len(line) == 2)
key = line[0].strip()
value = line[1].strip()
properties[key] = value
@ -309,4 +309,4 @@ def unique_elements_and_occurrences(elements):
unique_elements = list(unique_elements.items())
unique_elements.sort(key=lambda x: -x[1])
unique_elements = ['{}({})'.format(k, v) for k, v in unique_elements]
return unique_elements
return unique_elements