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],
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
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
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
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