Kaydet (Commit) 2c7d6859 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 84980 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84980 | antoine.pitrou | 2010-09-23 21:51:39 +0200 (jeu., 23 sept. 2010) | 3 lines

  Issue #9928: Properly initialize the types exported by the bz2 module.
........
üst fa647ec4
...@@ -43,6 +43,8 @@ Core and Builtins ...@@ -43,6 +43,8 @@ Core and Builtins
Library Library
------- -------
- Issue #9928: Properly initialize the types exported by the bz2 module.
- Issue #9854: The default read() implementation in io.RawIOBase now - Issue #9854: The default read() implementation in io.RawIOBase now
handles non-blocking readinto() returning None correctly. handles non-blocking readinto() returning None correctly.
......
...@@ -2320,9 +2320,12 @@ initbz2(void) ...@@ -2320,9 +2320,12 @@ initbz2(void)
{ {
PyObject *m; PyObject *m;
Py_TYPE(&BZ2File_Type) = &PyType_Type; if (PyType_Ready(&BZ2File_Type) < 0)
Py_TYPE(&BZ2Comp_Type) = &PyType_Type; return;
Py_TYPE(&BZ2Decomp_Type) = &PyType_Type; if (PyType_Ready(&BZ2Comp_Type) < 0)
return;
if (PyType_Ready(&BZ2Decomp_Type) < 0)
return;
m = Py_InitModule3("bz2", bz2_methods, bz2__doc__); m = Py_InitModule3("bz2", bz2_methods, bz2__doc__);
if (m == NULL) if (m == NULL)
......
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