History log of /external/python/cpython2/Modules/bz2module.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
763a61ca954a1c5a1b56411dd5e57a7d58afff75 10-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
/external/python/cpython2/Modules/bz2module.c
bc62af1bbe118aa678cb6fa4ecad40f7250b56de 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
/external/python/cpython2/Modules/bz2module.c
5951f2300f43d75d344d542e171daed47a0382a6 24-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
/external/python/cpython2/Modules/bz2module.c
be580f2e481f5f129a1e47e436dd7ae54b9f50bd 25-Apr-2014 Kristján Valur Jónsson <sweskman@gmail.com> Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize
/external/python/cpython2/Modules/bz2module.c
337c50b8cb84155918ff0b4b5478c70f7a6f3faf 08-Dec-2013 Nadeem Vawda <nadeem.vawda@gmail.com> Closes #19878: Fix segfault in bz2 module.

Initial patch by Vajrasky Kok.
/external/python/cpython2/Modules/bz2module.c
895cc22b8b4a72423317686d769d1f38e821f55b 02-Jan-2013 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #16828: Fix error incorrectly raised by bz2.compress('').

Patch by Martin Packman.
/external/python/cpython2/Modules/bz2module.c
45dba1da320c37f35a55e5b4873e5e9573a37711 21-Oct-2012 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #14398: Fix size truncation and overflow bugs in bz2 module.
/external/python/cpython2/Modules/bz2module.c
36248154a9c47283d4760b5c66402119043bbba1 13-Oct-2011 Nadeem Vawda <nadeem.vawda@gmail.com> Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.

Also fix the builtin file class and the bz2 module, which used the same algorithm.
/external/python/cpython2/Modules/bz2module.c
2c7d6859a42634921b2bb2447dfa890633db4d05 23-Sep-2010 Antoine Pitrou <solipsis@pitrou.net> 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.
........
/external/python/cpython2/Modules/bz2module.c
3970301e93ec3ab2e9a7a4c992d7056bea3ff9f6 01-Aug-2010 Antoine Pitrou <solipsis@pitrou.net> Merged revisions 83440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83440 | antoine.pitrou | 2010-08-01 22:08:46 +0200 (dim., 01 août 2010) | 4 lines

Issue #8397: Raise an error when attempting to mix iteration and regular
reads on a BZ2File object, rather than returning incorrect results.
........
/external/python/cpython2/Modules/bz2module.c
c83ea137d7e717f764e2f31fc2544f522de7d857 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Untabify C files. Will watch buildbots.
/external/python/cpython2/Modules/bz2module.c
dd62966a5fbc502a0e8d91ca3a7de843f1800d99 27-Oct-2009 Antoine Pitrou <solipsis@pitrou.net> Issue #7205: Fix a possible deadlock when using a BZ2File object from several threads at once.
/external/python/cpython2/Modules/bz2module.c
b74fc2b5feda3dbd56b2770a5a52c83db59c14d4 10-Jan-2009 Antoine Pitrou <solipsis@pitrou.net> Issue #3860: GzipFile and BZ2File now support the context manager protocol.
/external/python/cpython2/Modules/bz2module.c
f91d46a17d85da323895950852093117bc21f860 12-Aug-2008 Martin v. Löwis <martin@v.loewis.de> Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.

More module might need to get converted to use s*.
/external/python/cpython2/Modules/bz2module.c
016b366df4c8c3fc25f103fadb613fc5254b9f88 09-Aug-2008 Antoine Pitrou <solipsis@pitrou.net> #3205: bz2 iterator fails silently on MemoryError
/external/python/cpython2/Modules/bz2module.c
3b1e6b2f833d1e030b2ff853e1a942dc0de968f5 07-Jul-2008 Gregory P. Smith <greg@mad-scientist.com> - Issue #3309: Fix bz2.BZFile itererator to release its internal lock
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.
/external/python/cpython2/Modules/bz2module.c
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 09-Jun-2008 Gregory P. Smith <greg@mad-scientist.com> This reverts r63675 based on the discussion in this thread:

http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
/external/python/cpython2/Modules/bz2module.c
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyString to PyBytes
/external/python/cpython2/Modules/bz2module.c
73bee444ab1ce9f4fb3f165b3cc814901032895e 12-Apr-2008 Gregory P. Smith <greg@mad-scientist.com> fix compiler warnings
/external/python/cpython2/Modules/bz2module.c
c20adf8ef2d9ec938069d08fdcf66cff1d4a6905 07-Apr-2008 Gregory P. Smith <greg@mad-scientist.com> Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatly
within the standard library. These modules use PyFile_AsFile and later
release the GIL while operating on the previously returned FILE*.
/external/python/cpython2/Modules/bz2module.c
e93237dfcc4ee4feee62adafb4e7899487ca864b 19-Dec-2007 Christian Heimes <christian@cheimes.de> #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
/external/python/cpython2/Modules/bz2module.c
8335acbf24abed1b21841e978c644a80ff83cbbd 17-Sep-2007 Sean Reifscheider <jafo@tummy.com> issue1597011: Fix for bz2 module corner-case error due to error checking bug.
/external/python/cpython2/Modules/bz2module.c
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
/external/python/cpython2/Modules/bz2module.c
a47337fba5925e089ea11282569b3fcb78d17397 13-Mar-2007 Georg Brandl <georg@python.org> Bug #1622896: fix a rare corner case where the bz2 module raised an
error in spite of a succesful compression.
/external/python/cpython2/Modules/bz2module.c
44b054b84adc2deef45bf3fd2e17532d9a993cd3 18-Dec-2006 Andrew M. Kuchling <amk@amk.ca> [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
/external/python/cpython2/Modules/bz2module.c
d3f91908dd2c2ab79d16bfe235da34f2fc19c114 23-Sep-2006 Neal Norwitz <nnorwitz@gmail.com> Remove extra semi-colons reported by Johnny Lee on python-dev. Backport if anyone cares.
/external/python/cpython2/Modules/bz2module.c
3335a7ad63092d232098fec292cf9b3a25c66a83 14-Aug-2006 Georg Brandl <georg@python.org> Patch #1535500: fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
/external/python/cpython2/Modules/bz2module.c
b59d08c2fb407bbb1527b72141e125760863c2ba 22-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> Fix more memory allocation issues found with failmalloc.
/external/python/cpython2/Modules/bz2module.c
2a30cd0ef0673710a1a4e188b50c11026c403b2a 10-Jul-2006 Neal Norwitz <nnorwitz@gmail.com> Patch #1516912: improve Modules support for OpenVMS.
/external/python/cpython2/Modules/bz2module.c
047f3c7ffad1eb30e8b5345d665e3e96062cbd5d 12-Jun-2006 Neal Norwitz <nnorwitz@gmail.com> Fix some Py_ssize_t issues
/external/python/cpython2/Modules/bz2module.c
15e62742fad688b026ba80bf17d1345c4cbd423b 27-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Revert backwards-incompatible const changes.
/external/python/cpython2/Modules/bz2module.c
093ab1aa03f9b049496c3fd8d3006b053aa4f9a4 19-Feb-2006 Neal Norwitz <nnorwitz@gmail.com> Remove unused variable
/external/python/cpython2/Modules/bz2module.c
47fab92542133b9a3936f8771560bd6167db9d4d 18-Feb-2006 Georg Brandl <georg@python.org> Bug #1366000: cleanup BZ2File.seek() logic. Fixes the case of whence=2, offset>=0.
/external/python/cpython2/Modules/bz2module.c
18e165558b24d29e7e0ca501842b9236589b012a 15-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Merge ssize_t branch.
/external/python/cpython2/Modules/bz2module.c
1ac754fa10f5d199d19911e21185d0970cb3073f 19-Jan-2006 Neal Norwitz <nnorwitz@gmail.com> Check return result from Py_InitModule*(). This API can fail.

Probably should be backported.
/external/python/cpython2/Modules/bz2module.c
20bad74d6394a0e9ee82d776b8e4b93de352214a 17-Jan-2006 Neal Norwitz <nnorwitz@gmail.com> SF Bug #1407069, Remove extra semi-colon if there is no long long
/external/python/cpython2/Modules/bz2module.c
af68c874a6803b4e90b616077a602c0593719a1d 10-Dec-2005 Jeremy Hylton <jeremy@alum.mit.edu> Add const to several API functions that take char *.

In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.

I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].

One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
/external/python/cpython2/Modules/bz2module.c
a8bcecc872f3463da60fb887c63472e4326dddda 03-Sep-2005 Georg Brandl <georg@python.org> bug [ 1274069 ] bz2module.c compiler warning
/external/python/cpython2/Modules/bz2module.c
33a5f2af59ddcf3f1b0447a8dbd0576fd78de303 21-Aug-2005 Georg Brandl <georg@python.org> Fix BZ2File.(x)readlines() for files without a newline.
/external/python/cpython2/Modules/bz2module.c
6b95f1d963d3fd2dcc2e84e83b514364e9f52006 03-Jun-2005 Georg Brandl <georg@python.org> Bug #1194181: bz2.BZ2File didn't handle mode 'U' correctly.
/external/python/cpython2/Modules/bz2module.c
bb9c739806b9f0251fa4a564986e2cb5e92e766e 01-Nov-2004 Walter Dörwald <walter@livinglogic.de> Add error checks for the bz2, cStringIO and operator modules.

Add function names to various PyArg_ParseTuple calls in bz2module.c.
/external/python/cpython2/Modules/bz2module.c
a6e436e4b4f94062f274746fc5d109e4203bf658 14-Feb-2004 Gustavo Niemeyer <gustavo@niemeyer.net> - Fixed #853061: allow BZ2Compressor.compress() to receive an empty string
as parameter.
/external/python/cpython2/Modules/bz2module.c
db6080507d7b507cfe9aa524d012a96b5dfefc2d 07-Feb-2004 Skip Montanaro <skip@pobox.com> Remove support for --without-universal-newlines (see PEP 11).
/external/python/cpython2/Modules/bz2module.c
21d896cfa1646a1da4e0ead57db9defc2ade397c 01-Jul-2003 Neal Norwitz <nnorwitz@gmail.com> Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros
/external/python/cpython2/Modules/bz2module.c
c16f3bd8a391a68427a95e15a3c1894198ff0377 03-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #708495: Port more stuff to OpenVMS.
/external/python/cpython2/Modules/bz2module.c
572f5233f0263ab75782bbce4bd67259d73e32ac 29-Apr-2003 Gustavo Niemeyer <gustavo@niemeyer.net> Applying patch #728656, by logistix, fixing opening of nonexistent
bz2 files. Also, included a testcase for this problem.
/external/python/cpython2/Modules/bz2module.c
7628f1ffff2ecaad085e5e68f438deafed15fa43 27-Apr-2003 Gustavo Niemeyer <gustavo@niemeyer.net> Applying patch by Neal Norwitz:

[#727759] get bzip2 to build on Solaris 8 (old bzip library)
/external/python/cpython2/Modules/bz2module.c
b9a0f9121876cbc728cbef88f16bb32b92712d2d 29-Mar-2003 Martin v. Löwis <martin@v.loewis.de> Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.
/external/python/cpython2/Modules/bz2module.c
a33d0aa693610742b7bb364b0ab0dfa6076bdc4f 11-Feb-2003 Gustavo Niemeyer <gustavo@niemeyer.net> Unparenting BZ2File, as discussed in SF patch #661796.

* Modules/bz2module.c
(BZ2FileObject): Now the structure includes a pointer to a file object,
instead of "inheriting" one. Also, some members were copied from the
PyFileObject structure to avoid dealing with the internals of that
structure from outside fileobject.c.

(Util_GetLine,Util_DropReadAhead,Util_ReadAhead,Util_ReadAheadGetLineSkip,
BZ2File_write,BZ2File_writelines,BZ2File_init,BZ2File_dealloc,
BZ2Comp_dealloc,BZ2Decomp_dealloc):
These functions were adapted to the change above.

(BZ2File_seek,BZ2File_close): Use PyObject_CallMethod instead of
getting the function attribute locally.

(BZ2File_notsup): Removed, since it's not necessary anymore to overload
truncate(), and readinto() with dummy functions.

(BZ2File_methods): Added xreadlines() as an alias to BZ2File_getiter,
and removed truncate() and readinto().

(BZ2File_get_newlines,BZ2File_get_closed,BZ2File_get_mode,BZ2File_get_name,
BZ2File_getset):
Implemented getters for "newlines", "mode", and "name".

(BZ2File_members): Implemented "softspace" member.

(BZ2File_init): Reworked to create a file instance instead of initializing
itself as a file subclass. Also, pass "name" object untouched to the
file constructor, and use PyObject_CallFunction instead of building the
argument tuple locally.

(BZ2File_Type): Set tp_new to PyType_GenericNew, tp_members to
BZ2File_members, and tp_getset to BZ2File_getset.

(initbz2): Do not set BZ2File_Type.tp_base nor BZ2File_Type.tp_new.


* Doc/lib/libbz2.tex
Do not mention that BZ2File inherits from the file type.
/external/python/cpython2/Modules/bz2module.c
fb8595df4f9583ab9e83826cd782e0c18ba9cffa 06-Jan-2003 Jason Tishler <jason@tishler.net> Patch #661760: Cygwin auto-import module patch

The attached patch enables shared extension
modules to build cleanly under Cygwin without
moving the static initialization of certain function
pointers (i.e., ones exported from the Python
DLL core) to a module initialization function.

Additionally, this patch fixes the modules that
have been changed in the past to accommodate
Cygwin.
/external/python/cpython2/Modules/bz2module.c
d0ebd7edb1f2596325ebeedc3e3816170f720da9 05-Dec-2002 Jason Tishler <jason@tishler.net> Patch #649060: Cygwin bz2module patch

This patch enables the bz2 module to build cleanly under Cygwin.
/external/python/cpython2/Modules/bz2module.c
e17af7b3dbb0ebc6fea7e55052833564ca59d104 23-Nov-2002 Martin v. Löwis <martin@v.loewis.de> Include Python.h first.
/external/python/cpython2/Modules/bz2module.c
6ee6db81c2a1834f6cce864e0c84e1a166b15e95 09-Nov-2002 Tim Peters <tim.peters@gmail.com> bz2_compress/bz2_decompress: more casting away LONG_LONG for
_PyString_Resize calls.
/external/python/cpython2/Modules/bz2module.c
39185d622dc9eb8abe13d34925631c65593a8246 09-Nov-2002 Tim Peters <tim.peters@gmail.com> BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
/external/python/cpython2/Modules/bz2module.c
2858e5e84b4b4463d4fd327088bf8b4f87bf743b 09-Nov-2002 Tim Peters <tim.peters@gmail.com> BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
/external/python/cpython2/Modules/bz2module.c
f29f0c6a785e0535110afdbdcbe985e6bfc838c1 09-Nov-2002 Tim Peters <tim.peters@gmail.com> BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.
/external/python/cpython2/Modules/bz2module.c
07f075cebb73a96f04ce8747c3b4588571494189 09-Nov-2002 Tim Peters <tim.peters@gmail.com> BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it's
solely used to hold LONG_LONG values, and the compiler rightfully warns
about potential data loss otherwise.
/external/python/cpython2/Modules/bz2module.c
a17c0c4509db6545eaf770c0586f37028745f07a 09-Nov-2002 Tim Peters <tim.peters@gmail.com> Repaired signed-vs-unsigned mismatch.
/external/python/cpython2/Modules/bz2module.c
e32280987cadea69a3d7b69b51e9cd9d02211dfc 09-Nov-2002 Tim Peters <tim.peters@gmail.com> This couldn't compile on WIndows, due to hardcoded "long long". Repaired.
/external/python/cpython2/Modules/bz2module.c
49ea7be7e916918c0e959a1d34d318af0c175def 08-Nov-2002 Gustavo Niemeyer <gustavo@niemeyer.net> * Modules/bz2module.c
(BZ2File_dealloc): Call Util_DropReadAhead().
(*): Included aesthetic changes by Neal Norwitz.
/external/python/cpython2/Modules/bz2module.c
7d7930bb3fdb16e3a041a983717cffdd142ea8cf 05-Nov-2002 Gustavo Niemeyer <gustavo@niemeyer.net> * bzmodule.c
More fixes of XDECREF'd values not initialized.
/external/python/cpython2/Modules/bz2module.c
18142c0ca750b06320b4593133fe0c1b5a94336b 05-Nov-2002 Neal Norwitz <nnorwitz@gmail.com> Fix SF #633935, test_bz2 fails

Needed to init ret since it was Py_XDECREF()d on error.
All regressions pass in debug build for me.
/external/python/cpython2/Modules/bz2module.c
f8ca8364c9682df468a982a5f29831b76521bb6d 05-Nov-2002 Gustavo Niemeyer <gustavo@niemeyer.net> Patch implementing bz2 module.

* setup.py
(PyBuildExt.detect_modules): Included bz2 module detection.

* Modules/bz2module.c
* Lib/test/test_bz2.py
* Doc/lib/libbz2.tex
Included files implementing, testing, and documenting bz2 module.

* Doc/Makefile.deps
* Doc/lib/lib.tex
Include references to libbz2.tex.

* Misc/NEWS
(Library): Mention distutils' c++ linkage patch, and new bz2 module.
/external/python/cpython2/Modules/bz2module.c