projects
/
mygpt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OCD cosmetics.
[mygpt.git]
/
picoclvr.py
diff --git
a/picoclvr.py
b/picoclvr.py
index
2d57505
..
c455072
100755
(executable)
--- a/
picoclvr.py
+++ b/
picoclvr.py
@@
-181,9
+181,9
@@
def descr2properties(descr, height, width):
######################################################################
######################################################################
-def nb_
missing_
properties(descr, height, width):
+def nb_properties(descr, height, width):
if type(descr) == list:
if type(descr) == list:
- return [ nb_
missing_
properties(d, height, width) for d in descr ]
+ return [ nb_properties(d, height, width) for d in descr ]
d = descr.split('<img>', 1)
if len(d) == 0: return 0
d = descr.split('<img>', 1)
if len(d) == 0: return 0
@@
-202,7
+202,7
@@
if __name__ == '__main__':
descr = generate(nb = 5)
#print(descr2properties(descr))
descr = generate(nb = 5)
#print(descr2properties(descr))
- print(nb_
missing_
properties(descr))
+ print(nb_properties(descr))
with open('picoclvr_example.txt', 'w') as f:
for d in descr:
with open('picoclvr_example.txt', 'w') as f:
for d in descr: