[Mod] make flake8 happy
This commit is contained in:
parent
c580d3cb76
commit
fcff39144b
@ -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])
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user