]> granicus.if.org Git - python/commitdiff
Issue #8981: Remove _struct.__version__.
authorMark Dickinson <dickinsm@gmail.com>
Sat, 12 Jun 2010 09:24:01 +0000 (09:24 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 12 Jun 2010 09:24:01 +0000 (09:24 +0000)
Modules/_struct.c

index 87387bdb1a7adec28fc927209260850f728edc67..a9bfee3fa409e76c8e6c99e818724cf72272100b 100644 (file)
@@ -1965,10 +1965,6 @@ PyInit__struct(void)
 {
     PyObject *ver, *m;
 
-    ver = PyBytes_FromString("0.3");
-    if (ver == NULL)
-        return NULL;
-
     m = PyModule_Create(&_structmodule);
     if (m == NULL)
         return NULL;
@@ -2029,7 +2025,5 @@ PyInit__struct(void)
     Py_INCREF((PyObject*)&PyStructType);
     PyModule_AddObject(m, "Struct", (PyObject*)&PyStructType);
 
-    PyModule_AddObject(m, "__version__", ver);
-
     return m;
 }