diff --git a/src/cmake/Modules/cpplint.py b/src/cmake/Modules/cpplint.py index 085c4525c..45236bb42 100755 --- a/src/cmake/Modules/cpplint.py +++ b/src/cmake/Modules/cpplint.py @@ -3800,7 +3800,7 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, # include_state is modified during iteration, so we iterate over a copy of # the keys. - header_keys = list(include_state): + header_keys = list(include_state) for header in header_keys: (same_module, common_path) = FilesBelongToSameModule(abs_filename, header) fullpath = common_path + header