Skip to content

Commit 988a864

Browse files
authored
remove pointless copying from one set to another (#474)
just tidying up some more nonsense
1 parent 50f5fd3 commit 988a864

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/poetry/core/masonry/builders/builder.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,8 @@ def find_excluded_files(self, fmt: str | None = None) -> set[str]:
130130
)
131131

132132
ignored = (vcs_ignored_files | explicitely_excluded) - explicitely_included
133-
result = set()
134-
for file in ignored:
135-
result.add(file)
136-
137-
# The list of excluded files might be big and we will do a lot
138-
# containment check (x in excluded).
139-
# Returning a set make those tests much much faster.
140-
self._excluded_files = result
133+
134+
self._excluded_files = ignored
141135

142136
return self._excluded_files
143137

0 commit comments

Comments
 (0)