parameters: (variable)
return_statement: return newVariable
docstring: Remove duplicate values of an environment variable.
docstring_summary: Remove duplicate values of an environment variable.
docstring_tokens: Remove duplicate values of an environment variable .
function: def removeDuplicates(variable):
      """Remove duplicate values of an environment variable.
      """
      oldList = variable.split(os.pathsep)
      newList = []
      for i in oldList:
          if i not in newList:
              newList.append(i)
      newVariable = os.pathsep.join(newList)
      return newVariable
function_tokens: def removeDuplicates ( variable ) : oldList = variable . split ( os . pathsep ) newList = [ ] for i in oldList : if i not in newList : newList . append ( i ) newVariable = os . pathsep . join ( newList ) return newVariable