mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #8981: Remove _struct.__version__.
This commit is contained in:
parent
7db923cc99
commit
bfd57618b5
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue