[Scipy-svn] r2955 - trunk/Lib/sandbox/timeseries
scipy-svn at scipy.org
scipy-svn at scipy.org
Thu May 3 10:13:11 EDT 2007
Author: mattknox_ca
Date: 2007-05-03 09:13:04 -0500 (Thu, 03 May 2007)
New Revision: 2955
Modified:
trunk/Lib/sandbox/timeseries/tdates.py
Log:
allowed unicode strings to be passed to listparser
Modified: trunk/Lib/sandbox/timeseries/tdates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tdates.py 2007-05-03 06:17:49 UTC (rev 2954)
+++ trunk/Lib/sandbox/timeseries/tdates.py 2007-05-03 14:13:04 UTC (rev 2955)
@@ -491,7 +491,7 @@
if dlist.ndim == 0:
dlist.shape = (1,)
# Case #1: dates as strings .................
- if dlist.dtype.kind == 'S':
+ if dlist.dtype.kind in 'SU':
#...construct a list of ordinals
ords = numpy.fromiter((DateTimeFromString(s).toordinal() for s in dlist),
float_)
More information about the Scipy-svn
mailing list