boinc/py/Boinc/util.py

12 lines
164 B
Python
Raw Normal View History

## $Id$
def list2dict(list):
dict = {}
for k in list: dict[k] = None
return dict
def sorted_keys(dict):
k = dict.keys()
k.sort()
return k