kopia lustrzana https://github.com/micropython/micropython-lib
make_metadata.py: Support comments.
rodzic
b871e34e5b
commit
a3bb492fa7
|
@ -56,6 +56,8 @@ def parse_metadata(f):
|
||||||
data = {}
|
data = {}
|
||||||
for l in f:
|
for l in f:
|
||||||
l = l.strip()
|
l = l.strip()
|
||||||
|
if l[0] == "#":
|
||||||
|
continue
|
||||||
k, v = l.split("=", 1)
|
k, v = l.split("=", 1)
|
||||||
data[k.strip()] = v.strip()
|
data[k.strip()] = v.strip()
|
||||||
return data
|
return data
|
||||||
|
|
Ładowanie…
Reference in New Issue