[referenced_patterns] don't visit tops twice
This commit is contained in:
parent
fd2698c503
commit
c501a8ff99
1 changed files with 2 additions and 0 deletions
|
|
@ -180,6 +180,8 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
|
|||
|
||||
if isinstance(tops, str):
|
||||
tops = (tops,)
|
||||
tops = set(tops)
|
||||
skip |= tops # don't re-visit tops
|
||||
|
||||
# Get referenced patterns for all tops
|
||||
targets = set()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue