summaryrefslogtreecommitdiffstats
path: root/Lib/util.py
blob: dc67686a3272037747828a419fee1cbc264c8bcf (plain)
1
2
3
4
5
6
7
8
9
# 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