corrected comment (#69006)
This commit is contained in:
parent
44a471f6ba
commit
561725bace
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue