[Mod] make flake8 happy

This commit is contained in:
nanoric 2019-05-21 15:25:39 +08:00
parent c580d3cb76
commit fcff39144b

View File

@ -1,8 +1,9 @@
from typing import Dict
from autocxxpy.core.cxxparser import CxxFileParser
import black
from autocxxpy.core.cxxparser import CxxFileParser
parser = CxxFileParser(
files=["iTapAPIError.h",
"TapAPIError.h",
@ -16,13 +17,9 @@ for v in result.g.variables.values():
for v in result.g.namespaces['ITapTrade'].variables.values():
error_map[v.value] = v.brief_comment
result = f'error_map = {repr(error_map)}'
output_file = 'error_codes.py'
with open(output_file, "wt", encoding='utf-8') as f:
f.write(result)
black.main([output_file])