mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept
file-like objects using a new `fileobj` constructor argument. Patch by Nadeem Vawda.
This commit is contained in:
parent
0f535013c5
commit
37dc5f85b8
11 changed files with 1201 additions and 2339 deletions
4
setup.py
4
setup.py
|
@ -1233,11 +1233,11 @@ class PyBuildExt(build_ext):
|
|||
bz2_extra_link_args = ('-Wl,-search_paths_first',)
|
||||
else:
|
||||
bz2_extra_link_args = ()
|
||||
exts.append( Extension('bz2', ['bz2module.c'],
|
||||
exts.append( Extension('_bz2', ['_bz2module.c'],
|
||||
libraries = ['bz2'],
|
||||
extra_link_args = bz2_extra_link_args) )
|
||||
else:
|
||||
missing.append('bz2')
|
||||
missing.append('_bz2')
|
||||
|
||||
# Interface to the Expat XML parser
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue