[Numpy-svn] r4245 - branches/numpy.scons/numpy/core

numpy-svn@scip... numpy-svn@scip...
Thu Oct 18 19:09:07 CDT 2007


Author: cdavid
Date: 2007-10-18 19:09:02 -0500 (Thu, 18 Oct 2007)
New Revision: 4245

Modified:
   branches/numpy.scons/numpy/core/scons_support.py
Log:
Replace rsplit string method by our custom rsplit, to support python 2.3

Modified: branches/numpy.scons/numpy/core/scons_support.py
===================================================================
--- branches/numpy.scons/numpy/core/scons_support.py	2007-10-19 00:08:30 UTC (rev 4244)
+++ branches/numpy.scons/numpy/core/scons_support.py	2007-10-19 00:09:02 UTC (rev 4245)
@@ -10,11 +10,12 @@
      do_generate_api as nowrap_do_generate_ufunc_api
 
 from numpy.distutils.conv_template import process_str
+from numpy.distutils.scons.utils import rsplit
 
 import SCons.Node
 
 def split_ext(string):
-    sp = string.rsplit('.', 1)
+    sp = rsplit(string, '.', 1)
     if len(sp) == 1:
         return (sp[0], '')
     else:



More information about the Numpy-svn mailing list