Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
7d9f8d70b996169a13fc7ebb82883d5ef6e97bf9
/
.
/
Lib
/
lib-old
/
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