diff options
| -rwxr-xr-x | clang/docs/tools/dump_format_style.py | 4 | ||||
| -rw-r--r-- | clang/tools/scan-view/share/startfile.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/docs/tools/dump_format_style.py b/clang/docs/tools/dump_format_style.py index 2e1e8c12297..f2682edc777 100755 --- a/clang/docs/tools/dump_format_style.py +++ b/clang/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) diff --git a/clang/tools/scan-view/share/startfile.py b/clang/tools/scan-view/share/startfile.py index f58dbeeaf81..58023d0271a 100644 --- a/clang/tools/scan-view/share/startfile.py +++ b/clang/tools/scan-view/share/startfile.py @@ -189,7 +189,7 @@ else: return _controllers[controller_name].open except KeyError: - if _controllers.has_key('xdg-open'): + if 'xdg-open' in _controllers: return _controllers['xdg-open'].open else: return webbrowser.open |

