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

Re: svn commit: rev 5522 - in trunk/subversion: libsvn_client tests/clients/cmdline

From: Chris Foote <Chris.Foote_at_v21.me.uk>
Date: 2003-04-03 18:03:38 CEST

---------- Original Message ----------------------------------
From: Robert Pluim <rpluim@bigfoot.com>
Date: Thu, 3 Apr 2003 16:54:37 +0200

[snip]
>If I replace the regexp with:
>
> if 'svn: Filesystem has no item\n' == line:
>
>the test continues to work. If I use
>
> if 'svn: Filesystem has no item' == line:
>
>it fails, so the line ending is still there, however I don't know
if
>python represents line endings the same on different platforms.

You could use:

    if line[:27] == 'svn: Filesystem has no item':
        ...

i.e. Just compare the first 27 characters.

Regards,
Chris

________________________________________________________________

 
                   

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 3 18:09:13 2003

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.