[Zodb-checkins] CVS: StandaloneZODB/ZODB - TimeStamp.c:1.13 cPersistence.c:1.48 cPickleCache.c:1.38 coptimizations.c:1.15 winlock.c:1.7
Guido van Rossum
guido@python.org
Fri, 25 Jan 2002 09:51:56 -0500
Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv32424
Modified Files:
TimeStamp.c cPersistence.c cPickleCache.c coptimizations.c
winlock.c
Log Message:
Get rid of __version__. Add $ to doc string where needed.
=== StandaloneZODB/ZODB/TimeStamp.c 1.12 => 1.13 ===
{
PyObject *m, *d, *s;
- char *rev="$Revision$";
if (TimeStamp_init_gmoff() < 0) return;
if (! ExtensionClassImported) return;
@@ -435,10 +434,6 @@
s = PyString_FromString("TimeStamp.error");
PyDict_SetItemString(d, "error", s);
- Py_XDECREF(s);
-
- s = PyString_FromStringAndSize(rev + 11, strlen(rev + 11) - 2);
- PyDict_SetItemString(d, "__version__", s);
Py_XDECREF(s);
/* Check for errors */
=== StandaloneZODB/ZODB/cPersistence.c 1.47 => 1.48 ===
{
PyObject *m, *d, *s;
- char *rev="$Revision$";
s = PyString_FromString("TimeStamp");
if (s == NULL)
@@ -709,9 +708,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);
=== StandaloneZODB/ZODB/cPickleCache.c 1.37 => 1.38 ===
initcPickleCache(void)
{
- PyObject *m, *d, *s;
- char *rev="$Revision$";
+ PyObject *m, *d;
Cctype.ob_type=&PyType_Type;
@@ -669,10 +668,6 @@
py_reload=PyString_FromString("reload");
py__p_jar=PyString_FromString("_p_jar");
py__p_changed=PyString_FromString("_p_changed");
-
- s = PyString_FromStringAndSize(rev+11,strlen(rev+11)-2);
- PyDict_SetItemString(d,"__version__", s);
- Py_XDECREF(s);
/* Check for errors */
if (PyErr_Occurred())
=== StandaloneZODB/ZODB/coptimizations.c 1.14 => 1.15 ===
****************************************************************************/
+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"
@@ -246,8 +251,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);
@@ -269,16 +273,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())
=== StandaloneZODB/ZODB/winlock.c 1.6 => 1.7 ===
initwinlock(void) {
PyObject *m, *d;
- char *rev="$Revision$";
if (!(Error=PyString_FromString("winlock.error")))
return;
@@ -78,9 +77,4 @@
d = PyModule_GetDict(m);
PyDict_SetItemString(d, "error", Error);
- /* XXX below could blow up in PyDict_SetItem() */
- PyDict_SetItemString(d,"__version__",
- PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
}
-
-