MCPcopy Create free account
hub / github.com/MapServer/MapServer / unique

Function unique

mapscript/python/setup.py:37–44  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

35#
36# # Function needed to make unique lists.
37def unique(list):
38 ret_list = []
39 dict = {}
40 for item in list:
41 if not dict.has_key(item):
42 dict[item] = ''
43 ret_list.append( item )
44 return ret_list
45
46
47# ---------------------------------------------------------------------------

Callers 1

finalize_optionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected