Fix lint for updated tools
This commit is contained in:
committed by
Florian Friesdorf
parent
0e42f941d5
commit
4f658378eb
@@ -31,12 +31,12 @@ def main() -> None: # pragma: no cover
|
||||
for fname in files:
|
||||
path = Path(root, fname)
|
||||
if path.suffix == '.idl':
|
||||
typs.update(get_types_from_idl(path.read_text()))
|
||||
typs.update(get_types_from_idl(path.read_text(encoding='utf-8')))
|
||||
elif path.suffix == '.msg':
|
||||
name = path.relative_to(path.parents[2]).with_suffix('')
|
||||
if '/msg/' not in str(name):
|
||||
name = name.parent / 'msg' / name.name
|
||||
typs.update(get_types_from_msg(path.read_text(), str(name)))
|
||||
typs.update(get_types_from_msg(path.read_text(encoding='utf-8'), str(name)))
|
||||
register_types(typs)
|
||||
(selfdir / 'types.py').write_text(generate_python_code(typs))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user