Re: Avoid newline at the end

2007-11-11 Thread Florian Lindner
Steven D'Aprano wrote: > On Sun, 11 Nov 2007 11:22:19 +0100, Florian Lindner wrote: > >> Hello, >> I have a piece of code like that: >> >> for row in resultSet: >> logs += "/home/%s/%s/log/access.log \n" % (row[1], row[0]) >> logs += "/home/%s/%s/log/error.log \n" % (row[1],

Re: Avoid newline at the end

2007-11-11 Thread Paul Rubin
Florian Lindner <[EMAIL PROTECTED]> writes: > for row in resultSet: > logs += "/home/%s/%s/log/access.log \n" % (row[1], row[0]) > logs += "/home/%s/%s/log/error.log \n" % (row[1], row[0]) # <-- def logfile_path(name, row): return "/home/%s/%s/log/%s " % (row[1], row[0], n

Re: Avoid newline at the end

2007-11-11 Thread Steven D'Aprano
On Sun, 11 Nov 2007 11:22:19 +0100, Florian Lindner wrote: > Hello, > I have a piece of code like that: > > for row in resultSet: > logs += "/home/%s/%s/log/access.log \n" % (row[1], row[0]) > logs += "/home/%s/%s/log/error.log \n" % (row[1], row[0]) # <-- > > Now I want to

Re: Avoid newline at the end

2007-11-11 Thread Paul Hankin
On Nov 11, 10:22 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > I have a piece of code like that: > > for row in resultSet: > logs += "/home/%s/%s/log/access.log \n" % (row[1], row[0]) > logs += "/home/%s/%s/log/error.log \n" % (row[1], row[0]) # <-- > > Now I want to

Avoid newline at the end

2007-11-11 Thread Florian Lindner
Hello, I have a piece of code like that: for row in resultSet: logs += "/home/%s/%s/log/access.log \n" % (row[1], row[0]) logs += "/home/%s/%s/log/error.log \n" % (row[1], row[0]) # <-- Now I want to avoid the newline at the last iteration and only at the second line. How to d