Kaydet (Commit) 37dc5f85 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

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.
üst 0f535013
...@@ -202,6 +202,7 @@ docs@python.org), and we'll be glad to correct the problem. ...@@ -202,6 +202,7 @@ docs@python.org), and we'll be glad to correct the problem.
* Jim Tittsler * Jim Tittsler
* David Turner * David Turner
* Ville Vainio * Ville Vainio
* Nadeem Vawda
* Martijn Vries * Martijn Vries
* Charles G. Waldman * Charles G. Waldman
* Greg Ward * Greg Ward
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -87,6 +87,10 @@ Core and Builtins ...@@ -87,6 +87,10 @@ Core and Builtins
Library Library
------- -------
- 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.
- unittest.TestCase.assertSameElements has been removed. - unittest.TestCase.assertSameElements has been removed.
- sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not - sys.getfilesystemencoding() raises a RuntimeError if initfsencoding() was not
......
This diff is collapsed.
This diff is collapsed.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="9,00" Version="9,00"
Name="bz2" Name="_bz2"
ProjectGUID="{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}" ProjectGUID="{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}"
RootNamespace="bz2" RootNamespace="bz2"
Keyword="Win32Proj" Keyword="Win32Proj"
...@@ -527,7 +527,7 @@ ...@@ -527,7 +527,7 @@
Name="Source Files" Name="Source Files"
> >
<File <File
RelativePath="..\Modules\bz2module.c" RelativePath="..\Modules\_bz2module.c"
> >
</File> </File>
</Filter> </Filter>
......
...@@ -87,7 +87,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_tkinter", "_tkinter.vcproj ...@@ -87,7 +87,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_tkinter", "_tkinter.vcproj
{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
EndProjectSection EndProjectSection
EndProject EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bz2", "bz2.vcproj", "{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}" Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_bz2", "_bz2.vcproj", "{73FCD2BD-F133-46B7-8EC1-144CD82A59D5}"
ProjectSection(ProjectDependencies) = postProject ProjectSection(ProjectDependencies) = postProject
{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
EndProjectSection EndProjectSection
......
...@@ -112,9 +112,9 @@ _tkinter ...@@ -112,9 +112,9 @@ _tkinter
pre-built Tcl/Tk in either ..\..\tcltk for 32-bit or ..\..\tcltk64 for pre-built Tcl/Tk in either ..\..\tcltk for 32-bit or ..\..\tcltk64 for
64-bit (relative to this directory). See below for instructions to build 64-bit (relative to this directory). See below for instructions to build
Tcl/Tk. Tcl/Tk.
bz2 _bz2
Python wrapper for the libbz2 compression library. Homepage Python wrapper for the libbzip2 compression library. Homepage
http://sources.redhat.com/bzip2/ http://www.bzip.org/
Download the source from the python.org copy into the dist Download the source from the python.org copy into the dist
directory: directory:
......
...@@ -1233,11 +1233,11 @@ class PyBuildExt(build_ext): ...@@ -1233,11 +1233,11 @@ class PyBuildExt(build_ext):
bz2_extra_link_args = ('-Wl,-search_paths_first',) bz2_extra_link_args = ('-Wl,-search_paths_first',)
else: else:
bz2_extra_link_args = () bz2_extra_link_args = ()
exts.append( Extension('bz2', ['bz2module.c'], exts.append( Extension('_bz2', ['_bz2module.c'],
libraries = ['bz2'], libraries = ['bz2'],
extra_link_args = bz2_extra_link_args) ) extra_link_args = bz2_extra_link_args) )
else: else:
missing.append('bz2') missing.append('_bz2')
# Interface to the Expat XML parser # Interface to the Expat XML parser
# #
......
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