* pisi info output format for components.
This commit is contained in:
@@ -764,15 +764,10 @@ class autoxml(oo.autosuper, oo.autoprop):
|
|||||||
return errs
|
return errs
|
||||||
|
|
||||||
def format(l, f, errs):
|
def format(l, f, errs):
|
||||||
# TODO: indent here
|
l.sort()
|
||||||
ix = 1
|
|
||||||
length = len(l)
|
|
||||||
for node in l:
|
for node in l:
|
||||||
f.add_flowing_data(str(ix) + ': ')
|
|
||||||
format_item(node, f, errs)
|
format_item(node, f, errs)
|
||||||
if ix != length:
|
f.add_literal_data(' ')
|
||||||
f.add_flowing_data(', ')
|
|
||||||
ix += 1
|
|
||||||
|
|
||||||
return (init, decode, encode, errors, format)
|
return (init, decode, encode, errors, format)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user