[Zodb-checkins] CVS: StandaloneZODB/BTrees - BTreeModuleTemplate.c:1.17

Guido van Rossum guido@python.org
Fri, 25 Jan 2002 10:34:07 -0500


Update of /cvs-repository/StandaloneZODB/BTrees
In directory cvs.zope.org:/tmp/cvs-serv10384/BTrees

Modified Files:
	BTreeModuleTemplate.c 
Log Message:
Get rid of __version__, as Jim recommends.  Use $ from docstring instead.

=== StandaloneZODB/BTrees/BTreeModuleTemplate.c 1.16 => 1.17 ===
 INITMODULE (void)
 {
-  PyObject *m, *d, *c, *s;
+  PyObject *m, *d, *c;
 
   UNLESS (sort_str=PyString_FromString("sort")) return;
   UNLESS (reverse_str=PyString_FromString("reverse")) return;
@@ -353,10 +353,6 @@
 
   /* Add some symbolic constants to the module */
   d = PyModule_GetDict(m);
-
-  s = PyString_FromString("$Revision$");
-  PyDict_SetItemString(d, "__version__", s);
-  Py_XDECREF(s);
 
   PyExtensionClass_Export(d,MOD_NAME_PREFIX "Bucket", BucketType);
   PyExtensionClass_Export(d,MOD_NAME_PREFIX "BTree", BTreeType);