[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] hooks-scripts: fix svn2feed.py on Windows

From: Niels de Vos <niels.devos_at_wincor-nixdorf.com>
Date: Tue, 01 Jul 2008 13:52:42 +0200

Martin Furter wrote:
> On Mon, 30 Jun 2008, Niels de Vos wrote:
>
>> + for f in changed_data:
>> + desc += '<li>%s</li>\n' % re.split('\s', f, 1)[1]
>
> Wouldn't the normal string split work too here?
> desc += '<li>%s</li>\n' % f.split(None, 1)[1]

Yes, of course. That would not be a problem and 'import re' could be
removed again.

Niels

Received on 2008-07-02 22:28:46 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.