[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src - ISO_8859_1_Splitter.c:1.9

Jens Vagelpohl jens@zope.com
Wed, 20 Feb 2002 11:14:35 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src
In directory cvs.zope.org:/tmp/cvs-serv23485/TextIndex/Splitter/ISO_8859_1_Splitter/src

Modified Files:
	ISO_8859_1_Splitter.c 
Log Message:
Followed Fred's lead and removed all code that tries to gather the
module version number from a CVS substitution. This actually
caused core dumps running the unit tests on OS X.

Also changed the unit test to no longer just skip the test for the
ISO splitter on OS X.



=== Zope/lib/python/Products/PluginIndexes/TextIndex/Splitter/ISO_8859_1_Splitter/src/ISO_8859_1_Splitter.c 1.8 => 1.9 ===
 initISO_8859_1_Splitter(void)
 {
-    PyObject *m, *d;
-    char *rev="$Revision$";
+    PyObject *m;
 
     /* Create the module and add the functions */
     initSplitterTrtabs();
     m = Py_InitModule4("ISO_8859_1_Splitter", Splitter_module_methods,
                        Splitter_module_documentation,
                        (PyObject*)NULL,PYTHON_API_VERSION);
-
-    /* Add some symbolic constants to the module */
-    d = PyModule_GetDict(m);
-
-    PyDict_SetItemString(d, "__version__",
-                         PyString_FromStringAndSize(rev+11,strlen(rev+11)-2));
-    if (PyErr_Occurred()) Py_FatalError("can't initialize module Splitter");
 }