MCPcopy Index your code
hub / github.com/python/cpython / removeDuplicates

Function removeDuplicates

Tools/c-analyzer/distutils/msvc9compiler.py:204–213  ·  view source on GitHub ↗

Remove duplicate values of an environment variable.

(variable)

Source from the content-addressed store, hash-verified

202 return reduced_paths
203
204def removeDuplicates(variable):
205 """Remove duplicate values of an environment variable.
206 """
207 oldList = variable.split(os.pathsep)
208 newList = []
209 for i in oldList:
210 if i not in newList:
211 newList.append(i)
212 newVariable = os.pathsep.join(newList)
213 return newVariable
214
215def find_vcvarsall(version):
216 """Find the vcvarsall.bat file

Callers 1

query_vcvarsallFunction · 0.85

Calls 3

splitMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…