[pypy-svn] r78383 - pypy/branch/fast-forward/lib_pypy
afa at codespeak.net
afa at codespeak.net
Thu Oct 28 02:02:54 CEST 2010
Author: afa
Date: Thu Oct 28 02:02:52 2010
New Revision: 78383
Modified:
pypy/branch/fast-forward/lib_pypy/datetime.py
Log:
Update datetime module to use the raw _strptime function
Modified: pypy/branch/fast-forward/lib_pypy/datetime.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/datetime.py (original)
+++ pypy/branch/fast-forward/lib_pypy/datetime.py Thu Oct 28 02:02:52 2010
@@ -1612,10 +1612,11 @@
@classmethod
def strptime(cls, date_string, format):
'string, format -> new datetime parsed from a string (like time.strptime()).'
+ from _strptime import _strptime
# _strptime._strptime returns a two-element tuple. The first
# element is a time.struct_time object. The second is the
# microseconds (which are not defined for time.struct_time).
- struct, micros = _time.strptime(date_string, format)
+ struct, micros = _strptime(date_string, format)
return cls(*(struct[0:6] + (micros,)))
def utcoffset(self):
More information about the Pypy-commit
mailing list