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

Re: svn commit: r22451 - trunk/subversion/tests/cmdline

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-11-28 08:25:50 CET

string.splitfields() seems to be an alias for string.split(), which
corresponds to str.split(). We can probably change this to:

  drives=drives.split('\000')

...and lose the import of string again.

On Mon, 27 Nov 2006, lgo@tigris.org wrote:

> Author: lgo
> Date: Mon Nov 27 12:28:58 2006
> New Revision: 22451
>
> Log:
> Revert small part of r22444.
>
> * subversion/tests/cmdline/update_tests.py
> (update_wc_on_windows_drive): splitfields() can only be called on string.
>
> Modified:
> trunk/subversion/tests/cmdline/update_tests.py
>
> Modified: trunk/subversion/tests/cmdline/update_tests.py
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/tests/cmdline/update_tests.py?pathrev=22451&r1=22450&r2=22451
> ==============================================================================
> --- trunk/subversion/tests/cmdline/update_tests.py (original)
> +++ trunk/subversion/tests/cmdline/update_tests.py Mon Nov 27 12:28:58 2006
> @@ -17,7 +17,7 @@
> ######################################################################
>
> # General modules
> -import sys, re, os
> +import string, sys, re, os
>
> # Our testing module
> import svntest
> @@ -2108,7 +2108,7 @@
> import win32api
>
> drives=win32api.GetLogicalDriveStrings()
> - drives=drives.splitfields('\000')
> + drives=string.splitfields(drives, '\000')
>
> for d in range(ord('G'), ord('Z')+1):
> drive = chr(d)

  • application/pgp-signature attachment: stored
Received on Tue Nov 28 08:27:23 2006

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.