[Numpy-svn] r3165 - trunk/numpy/distutils

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Sep 15 16:13:13 CDT 2006


Author: oliphant
Date: 2006-09-15 16:13:09 -0500 (Fri, 15 Sep 2006)
New Revision: 3165

Modified:
   trunk/numpy/distutils/misc_util.py
Log:
Fix when svnversion is not present.

Modified: trunk/numpy/distutils/misc_util.py
===================================================================
--- trunk/numpy/distutils/misc_util.py	2006-09-15 21:06:47 UTC (rev 3164)
+++ trunk/numpy/distutils/misc_util.py	2006-09-15 21:13:09 UTC (rev 3165)
@@ -1204,7 +1204,7 @@
         revision = None
         try:
             sin, sout = os.popen4('svnversion')
-            m = re.search(r'(?P<revision>\d+)', sout.read())
+            m = re.match(r'(?P<revision>\d+)', sout.read())
             if m:
                 revision = int(m.group('revision'))
                 return revision



More information about the Numpy-svn mailing list