[Zodb-checkins] CVS: Zope/lib/python/ZODB - coptimizations.c:1.14.16.2 cPersistence.c:1.47.16.2
Fred L. Drake, Jr.
fdrake@acm.org
Wed, 20 Feb 2002 09:53:43 -0500
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv29538
Modified Files:
Tag: Zope-2_5-branch
coptimizations.c cPersistence.c
Log Message:
Reduce dependence on the format of CVS keyword expansions.
=== Zope/lib/python/ZODB/coptimizations.c 1.14.16.1 => 1.14.16.2 ===
****************************************************************************/
+static char coptimizations_doc_string[] =
+"C optimization for new_persistent_id().\n"
+"\n"
+"$Id$\n";
+
#include "Python.h"
#define DONT_USE_CPERSISTENCECAPI
#include "cPersistence.h"
@@ -247,8 +252,7 @@
void
initcoptimizations(void)
{
- PyObject *m, *d, *s;
- char *rev="$Revision$";
+ PyObject *m, *d;
#define make_string(S) if (! (py_ ## S=PyString_FromString(#S))) return
make_string(_p_oid);
@@ -270,16 +274,12 @@
UNLESS (ExtensionClassImported) return;
m = Py_InitModule4("coptimizations", Module_Level__methods,
- "C optimizations",
+ coptimizations_doc_string,
(PyObject*)NULL,PYTHON_API_VERSION);
d = PyModule_GetDict(m);
persistent_idType.ob_type=&PyType_Type;
PyDict_SetItemString(d,"persistent_idType", OBJECT(&persistent_idType));
-
- s = PyString_FromStringAndSize(rev+11,strlen(rev+11)-2);
- PyDict_SetItemString(d, "__version__", s);
- Py_XDECREF(s);
/* Check for errors */
if (PyErr_Occurred())
=== Zope/lib/python/ZODB/cPersistence.c 1.47.16.1 => 1.47.16.2 ===
{
PyObject *m, *d, *s;
- char *rev="$Revision$";
s = PyString_FromString("TimeStamp");
if (s == NULL)
@@ -710,9 +709,6 @@
d = PyModule_GetDict(m);
- s = PyString_FromStringAndSize(rev+11,strlen(rev+11)-2);
- PyDict_SetItemString(d,"__version__", s);
- Py_XDECREF(s);
PyExtensionClass_Export(d, "Persistent", Pertype);
PyExtensionClass_Export(d, "Overridable", Overridable);