Add missing file.

This commit is contained in:
Valentin Lorentz
2015-12-20 16:15:56 +01:00
parent 38569f013f
commit 2601e3f1cb

View File

@ -0,0 +1,10 @@
def cap_list_to_dict(l):
d = {}
for cap in l:
if '=' in cap:
(key, value) = cap.split('=', 1)
else:
key = cap
value = None
d[key] = value
return d