diff options
Diffstat (limited to 'docs/tools')
-rwxr-xr-x | docs/tools/dump_format_style.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tools/dump_format_style.py b/docs/tools/dump_format_style.py index 2e1e8c1229..f2682edc77 100755 --- a/docs/tools/dump_format_style.py +++ b/docs/tools/dump_format_style.py @@ -180,9 +180,9 @@ def read_options(header): 'std::vector<std::string>', 'std::vector<IncludeCategory>', 'std::vector<RawStringFormat>']: - if enums.has_key(option.type): + if option.type in enums: option.enum = enums[option.type] - elif nested_structs.has_key(option.type): + elif option.type in nested_structs: option.nested_struct = nested_structs[option.type] else: raise Exception('Unknown type: %s' % option.type) |