Skip to content

Commit 974f65f

Browse files
authored
Merge pull request #29 from rabbitmq/without-helper-fun
Add the helper function `without(item, elements)` to util.bzl
2 parents 5a484b7 + c93d493 commit 974f65f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ def path_join(*components):
1010

1111
def windows_path(path):
1212
return path.replace("/c/", "C:\\").replace("/", "\\")
13+
14+
def without(item, elements):
15+
c = list(elements)
16+
c.remove(item)
17+
return c

0 commit comments

Comments
 (0)