--- a/src/eric7/Utilities/ClassBrowsers/rbclbr.py Sun Dec 11 18:24:41 2022 +0100 +++ b/src/eric7/Utilities/ClassBrowsers/rbclbr.py Mon Dec 12 16:35:21 2022 +0100 @@ -162,15 +162,6 @@ _commentsub = re.compile(r"""#[^\n]*\n|#[^\n]*$""").sub -_modules = {} # cache of modules we've seen - - -def clearModulesCache(): - """ - Function to clear the cached modules. - """ - _modules.clear() - class VisibilityMixin(ClbrBaseClasses.ClbrVisibilityMixinBase): """ @@ -275,12 +266,6 @@ @return the resulting dictionary @rtype dict """ - global _modules - - if module in _modules: - # we've seen this file before... - return _modules[module] - # search the path for the file f = None fullpath = [] if path is None else path[:] @@ -289,18 +274,15 @@ f.close() if type not in SUPPORTED_TYPES: # not Ruby source, can't do anything with this module - _modules[module] = {} return {} try: src = Utilities.readEncodedFile(file)[0] except (UnicodeError, OSError): # can't do anything with this module - _modules[module] = {} return {} - _modules[module] = scan(src, file, module) - return _modules[module] + return scan(src, file, module) def scan(src, file, module):