diff --git a/data.py b/data.py index ef68d69..32e7564 100755 --- a/data.py +++ b/data.py @@ -68,9 +68,9 @@ class DefList: type = defTypeR [type.decode()] line = int(line) family = family.decode() - yield(id, type, line, family) + yield id, type, line, family if dummy: - yield(maxId, None, None, None) + yield maxId, None, None, None def append(self, id, type, line, family): if type not in defTypeD: @@ -108,9 +108,9 @@ class PathList: id, path = p.split(b' ',maxsplit=1) id = int(id) path = path.decode() - yield(id, path) + yield id, path if dummy: - yield(maxId, None) + yield maxId, None def append(self, id, path): p = str(id).encode() + b' ' + path + b'\n' @@ -133,9 +133,9 @@ class RefList: b = int(b.decode()) c = c.decode() d = d.decode() - yield(b, c, d) + yield b, c, d if dummy: - yield(maxId, None, None) + yield maxId, None, None def append(self, id, lines, family): p = str(id) + ':' + lines + ':' + family + '\n' diff --git a/http/filters/dtscomp.py b/http/filters/dtscomp.py index 8d54276..4030b02 100644 --- a/http/filters/dtscomp.py +++ b/http/filters/dtscomp.py @@ -1,6 +1,6 @@ # Elixir Python definitions for DT compatible strings support -if(dts_comp_support): +if dts_comp_support: exec(open('dtscompC.py').read()) exec(open('dtscompD.py').read()) exec(open('dtscompB.py').read()) diff --git a/http/web.py b/http/web.py index bd175e7..6531123 100755 --- a/http/web.py +++ b/http/web.py @@ -339,16 +339,16 @@ elif mode == 'ident': previous_type = '' types_count = {} - # Count occurences of each type before printing + # Count occurrences of each type before printing for symbol_definition in symbol_definitions: - if (symbol_definition.type in types_count): + if symbol_definition.type in types_count: types_count[symbol_definition.type] += 1 else: types_count[symbol_definition.type] = 1 for symbol_definition in symbol_definitions: - if (symbol_definition.type != previous_type) : - if (previous_type != ''): + if symbol_definition.type != previous_type: + if previous_type != '': print('') print('

Defined in '+str(types_count[symbol_definition.type])+' files as a '+symbol_definition.type+':

') print('