Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
7927384a1d78ec87282d54c3af7563935185d145
/
.
/
Lib
/
util.py
blob: dc67686a3272037747828a419fee1cbc264c8bcf [
file
] [
log
] [
blame
]
# Module 'util' -- some useful functions that dont fit elsewhere
# Remove an item from a list at most once
#
def
remove
(
item
,
list
):
for
i
in
range
(
len
(
list
)):
if
list
[
i
]
=
item
:
del
list
[
i
]
break