[reportlab-users] Preformatted problem with split and join er ror

Jerome Alet reportlab-users@reportlab.com
Mon, 9 Dec 2002 15:17:45 +0100


On Mon, Dec 09, 2002 at 03:10:52PM +0100, Gisbert Amm wrote:
> 
> Since Python 2.0 you can do this easier without explicitly importing the
> string module using the join method of the string object:
> 
> text = '\n'.join(self.lines)
> 
> I suspect that was intended.

No, because it breaks 1.5 compatibility.

what is missing is :

        from string import join
        
or the string.join() in the previous message.        

bye,

Jerome Alet