corrected comment (#69006)

This commit is contained in:
Brian Coca 2020-04-17 17:07:26 -04:00 committed by GitHub
parent 44a471f6ba
commit 561725bace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -433,9 +433,8 @@ class PluginLoader:
# TODO: Instead of using the self._paths cache (PATH_CACHE) and
# self._searched_paths we could use an iterator. Before enabling that
# we need to make sure we don't want to add additional directories
# (add_directory()) once we start using the iterator. Currently, it
# looks like _get_paths() never forces a cache refresh so if we expect
# additional directories to be added later, it is buggy.
# (add_directory()) once we start using the iterator.
# We can use _get_paths() since add_directory() forces a cache refresh.
for path in (p for p in self._get_paths() if p not in self._searched_paths and os.path.isdir(p)):
display.debug('trying %s' % path)
try: