Commit 6bff4058 authored by Guido van Rossum's avatar Guido van Rossum

Get rid of __version__, as Jim recommends. Use $ from docstring instead.

parent 2f9968f4
...@@ -269,7 +269,7 @@ static char BTree_module_documentation[] = ...@@ -269,7 +269,7 @@ static char BTree_module_documentation[] =
"\n" "\n"
MASTER_ID MASTER_ID
BTREEITEMSTEMPLATE_C BTREEITEMSTEMPLATE_C
"$Id: BTreeModuleTemplate.c,v 1.16 2002/01/17 18:00:48 jeremy Exp $\n" "$Id: BTreeModuleTemplate.c,v 1.17 2002/01/25 15:34:06 gvanrossum Exp $\n"
BTREETEMPLATE_C BTREETEMPLATE_C
BUCKETTEMPLATE_C BUCKETTEMPLATE_C
KEYMACROS_H KEYMACROS_H
...@@ -284,7 +284,7 @@ BTREEITEMSTEMPLATE_C ...@@ -284,7 +284,7 @@ BTREEITEMSTEMPLATE_C
void void
INITMODULE (void) INITMODULE (void)
{ {
PyObject *m, *d, *c, *s; PyObject *m, *d, *c;
UNLESS (sort_str=PyString_FromString("sort")) return; UNLESS (sort_str=PyString_FromString("sort")) return;
UNLESS (reverse_str=PyString_FromString("reverse")) return; UNLESS (reverse_str=PyString_FromString("reverse")) return;
...@@ -354,10 +354,6 @@ INITMODULE (void) ...@@ -354,10 +354,6 @@ INITMODULE (void)
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); d = PyModule_GetDict(m);
s = PyString_FromString("$Revision: 1.16 $");
PyDict_SetItemString(d, "__version__", s);
Py_XDECREF(s);
PyExtensionClass_Export(d,MOD_NAME_PREFIX "Bucket", BucketType); PyExtensionClass_Export(d,MOD_NAME_PREFIX "Bucket", BucketType);
PyExtensionClass_Export(d,MOD_NAME_PREFIX "BTree", BTreeType); PyExtensionClass_Export(d,MOD_NAME_PREFIX "BTree", BTreeType);
PyExtensionClass_Export(d,MOD_NAME_PREFIX "Set", SetType); PyExtensionClass_Export(d,MOD_NAME_PREFIX "Set", SetType);
......
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