Commit b64c388b authored by Tres Seaver's avatar Tres Seaver

Rename 'TimeStamp' ext. module -> '_timestamp'.

Avoids clash w/ pure-Python 'timestamp' module on case-insensitive filesystems.

N.B:  the canonical way to import the ``TimeStamp`` class is now::

  from persistent.timestamp import TimeStamp

which will yield the class from the extension module (if available),
falling back to the pure-Python reference implementation.
parent 07107669
......@@ -4,7 +4,15 @@
4.0.1 (unreleased)
------------------
- TBD
- Renamed ``TimeStamp`` extension module to avoid clash with pure-Python
``timestamp`` module on case-insensitive filesystems.
N.B: the canonical way to import the ``TimeStamp`` class is now::
from persistent.timestamp import TimeStamp
which will yield the class from the extension module (if available),
falling back to the pure-Python reference implementation.
4.0.0 (2012-08-11)
......
......@@ -1417,7 +1417,7 @@ initcPersistence(void)
if (!TimeStamp)
{
m = PyImport_ImportModule("persistent.TimeStamp");
m = PyImport_ImportModule("persistent.timestamp");
if (!m)
return;
TimeStamp = PyObject_GetAttrString(m, "TimeStamp");
......
......@@ -132,6 +132,6 @@ class pyTimeStamp(object):
return self.__class__(later)
try:
from persistent.TimeStamp import TimeStamp
from persistent._timestamp import TimeStamp
except ImportError: #pragma NO COVER
TimeStamp = pyTimeStamp
......@@ -56,8 +56,8 @@ else:
'persistent/ring.c',
]
),
Extension(name = 'persistent.TimeStamp',
sources= ['persistent/TimeStamp.c',
Extension(name = 'persistent._timestamp',
sources= ['persistent/_timestamp.c',
],
),
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment