diff --git a/tools/manifest/sourcefile.py b/tools/manifest/sourcefile.py index 5d8b73481e6e19..c374ba050434e8 100644 --- a/tools/manifest/sourcefile.py +++ b/tools/manifest/sourcefile.py @@ -992,9 +992,9 @@ def manifest_items(self): if drop_cached and "__cached_properties__" in self.__dict__: cached_properties = self.__dict__["__cached_properties__"] - for key in cached_properties: - if str(key) in self.__dict__: - del self.__dict__[str(key)] + for prop in cached_properties: + if prop in self.__dict__: + del self.__dict__[prop] del self.__dict__["__cached_properties__"] return rv