Cannot submit a ticket to trac - using the mailling list (proposed small optimization in output.py)

10 views
Skip to first unread message

Guillaume P.

unread,
Apr 10, 2012, 4:49:14 PM4/10/12
to Genshi
Hello,

I have seen this in genshi/output.py, and thought it could be
appropriate to report an enhancement to the code.

In this function:

{{{
def encode(iterator, method='xml', encoding=None, out=None):
[...]
if out is None:
return _encode(''.join(list(iterator)))
}}}

Should not this line be instead:

{{{
if out is None:
return _encode(''.join(iterator))
}}}

in order to save some memory and CPU cycles?

What do you think?

Thanks,


PS: I have been trying to submit a ticket in the trac system, but it
gets rejected because of spam suspicion...
Reply all
Reply to author
Forward
0 new messages