History log of /external/python/cpython3/Modules/zipimport.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
467ab194fc6189d9f7310c89937c51abeac56839 21-Oct-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28410: Added _PyErr_FormatFromCause() -- the helper for raising
new exception with setting current exception as __cause__.

_PyErr_FormatFromCause(exception, format, args...) is equivalent to Python

raise exception(format % args) from sys.exc_info()[1]
/external/python/cpython3/Modules/zipimport.c
4aa74c429cabef6aaf91b2b0d4c2163778b1249d 14-Sep-2016 Berker Peksag <berker.peksag@gmail.com> Issue #28131: Fix a regression in zipimport's compile_source()

zipimport should use the same optimization level as the interpreter.
/external/python/cpython3/Modules/zipimport.c
8dcc48ee3b6447cd63038e63ee11de36f6d85a68 10-Sep-2016 Steve Dower <steve.dower@microsoft.com> Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)
/external/python/cpython3/Modules/zipimport.c
0be894b2f6ca17204922399d6982f0b8a9dc59a1 07-Sep-2016 Martin Panter <vadmium+py@gmail.com> Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
/external/python/cpython3/Modules/zipimport.c
57a01d3a0ee20ee9eea69b658c6bac0f39541625 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/cpython3/Modules/zipimport.c
48842714b948fa239392ddd7e207151d5fcb8bc7 06-Apr-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #22570: Renamed Py_SETREF to Py_XSETREF.
/external/python/cpython3/Modules/zipimport.c
d5db57396b9c174dac3f8491cc50b61080cec75a 28-Jan-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #19883: Fixed possible integer overflows in zipimport.
/external/python/cpython3/Modules/zipimport.c
d52513cb222174df834ea81e61037899248e312c 22-Jan-2016 Benjamin Peterson <benjamin@python.org> merge 3.4
b1db7580611421309ab0be7c0801f4f89ecec440 22-Jan-2016 Benjamin Peterson <benjamin@python.org> reject negative data_size
/external/python/cpython3/Modules/zipimport.c
47b8ba22e304fa136563c803f5f0cc589e8be1ac 21-Jan-2016 Benjamin Peterson <benjamin@python.org> merge 3.4 (#26171)
c4032da2012d75c6c358f74d8bf9ee98a7fe8ecf 21-Jan-2016 Benjamin Peterson <benjamin@python.org> prevent buffer overflow in get_data (closes #26171)
/external/python/cpython3/Modules/zipimport.c
d4d7737c3f294d745d6c121dabb17b76cc11b9c8 21-Jan-2016 Benjamin Peterson <benjamin@python.org> merge 3.4
ef9cf0835230398bb1af134eabaef7c3cad0bce3 21-Jan-2016 Benjamin Peterson <benjamin@python.org> fix refleak in error condition
/external/python/cpython3/Modules/zipimport.c
56aae8f3043761853504193508d404280a3ec40b 15-Jan-2016 Brett Cannon <brett@python.org> Issue #17633: Improve support for namespace packages with zipimport.

Previously zipimport mistakenly limited namespace support to only the
top-level of the zipfile when it should have supported an arbitrary
depth.

Thanks to Phil Connel for the bug report and initial patch and Mike
Romberg for the final patch.
/external/python/cpython3/Modules/zipimport.c
5a57ade58ec5bee85db41b8ce1340ff077781b65 24-Dec-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
/external/python/cpython3/Modules/zipimport.c
f299abdafa0f2b6eb7abae274861b19b361c96bc 13-Apr-2015 Brett Cannon <brett@python.org> Issue #23731: Implement PEP 488.

The concept of .pyo files no longer exists. Now .pyc files have an
optional `opt-` tag which specifies if any extra optimizations beyond
the peepholer were applied.
/external/python/cpython3/Modules/zipimport.c
fbd6f9ed124c89753f6e3fd2cd84e4d9c474cc1f 20-Mar-2015 Victor Stinner <victor.stinner@gmail.com> Issue #23696: Chain ZipImportError to the OSError
/external/python/cpython3/Modules/zipimport.c
5200f5502407045b747b97168b80d63a3cfafd4f 18-Mar-2015 Victor Stinner <victor.stinner@gmail.com> Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file()

Detect also earlier PyMarshal_Read*() errors in zipimport.
/external/python/cpython3/Modules/zipimport.c
e42ccd2bfd7a05a02c1020b819e4ee5b26041d01 18-Mar-2015 Victor Stinner <victor.stinner@gmail.com> Issue #23694: Enhance _Py_fopen(), it now raises an exception on error

* If fopen() fails, OSError is raised with the original filename object.
* The GIL is now released while calling fopen()
/external/python/cpython3/Modules/zipimport.c
1a1ff29659f068659dea07f1bd67b8fd4331071c 16-Feb-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows. Added few missed PyErr_NoMemory().
/external/python/cpython3/Modules/zipimport.c
34c15400092bba37ea36e155d151cfcbfa846db7 16-Feb-2014 Benjamin Peterson <benjamin@python.org> merge backout for #20621
/external/python/cpython3/Modules/zipimport.c
766e10c4a808727ecefca7dec59819121477d27f 09-Jan-2014 Benjamin Peterson <benjamin@python.org> merge 3.3
21e7d4cd5eb5a1ee153baf4c7915db80e6ca59e1 09-Jan-2014 Benjamin Peterson <benjamin@python.org> fix zipimport ref leak
/external/python/cpython3/Modules/zipimport.c
2e385e2592c140897a106a6a95184b23c5611a7f 08-Jan-2014 Gregory P. Smith <greg@krypto.org> Fixes issue #19081: When a zipimport .zip file in sys.path being imported from
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
2bcbc141173e5cd2ed36693a71bed8d5a1a54dd4 08-Jan-2014 Gregory P. Smith <greg@krypto.org> Fixes Issue #19081: When a zipimport .zip file in sys.path being imported from
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
/external/python/cpython3/Modules/zipimport.c
651f9f77f3290a54e8934b331b40c3c868da850f 12-Nov-2013 Victor Stinner <victor.stinner@gmail.com> Issue #19515: Remove duplicated identifiers in zipimport.c
/external/python/cpython3/Modules/zipimport.c
af8b7e823360f94714f8eded4a27572914851c7d 29-Oct-2013 Victor Stinner <victor.stinner@gmail.com> Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() failures
/external/python/cpython3/Modules/zipimport.c
73660af6afdd8309c85d5e513e319b7f0a5b006e 29-Oct-2013 Victor Stinner <victor.stinner@gmail.com> Issue #19428: zipimport now handles errors when reading truncated or invalid
ZIP archive.
/external/python/cpython3/Modules/zipimport.c
daf455554bc21b6b5df0a016ab5fa639d36cc595 28-Aug-2013 Victor Stinner <victor.stinner@gmail.com> Issue #18571: Implementation of the PEP 446: file descriptors and file handles
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
/external/python/cpython3/Modules/zipimport.c
83358c9f132b2d16b72cd1ed1430926f35296829 21-Jun-2013 Brett Cannon <brett@python.org> Grammatical mistake in a comment
/external/python/cpython3/Modules/zipimport.c
0e6b7b5cd2f1bae9bdceac4d2bedfd6674250ac1 16-Feb-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob.
/external/python/cpython3/Modules/zipimport.c
fb22f542d229a05ec2dfa072cd7a3cf1c93fa7ea 03-Oct-2012 Jesus Cea <jcea@jcea.es> MERGE: Closes #15897: zipimport.c doesn't check return value of fseek()
09bf7a799da7c8b7cdd0f9c5cd789769b8cab2d5 03-Oct-2012 Jesus Cea <jcea@jcea.es> Closes #15897: zipimport.c doesn't check return value of fseek()
/external/python/cpython3/Modules/zipimport.c
1b5c76a2832e3fc3eb4d850b5bc69692bf23c83a 10-Sep-2012 Christian Heimes <christian@cheimes.de> Fixed two memory leaks in make_filename() in zipimport.c. The allocated buffer wasn't cleaned up in two error cases. CID 486832
/external/python/cpython3/Modules/zipimport.c
000fde9651079209d5e4688c70099e326f2a57f9 20-Aug-2012 Stefan Krah <skrah@bytereef.org> Closes #15737: Fix potential NULL dereference in zipimport.c.
/external/python/cpython3/Modules/zipimport.c
46c214d893fe8304108de2a4a592255058ced34d 25-May-2012 Benjamin Peterson <benjamin@python.org> capitialize enum members
/external/python/cpython3/Modules/zipimport.c
18eac4a1d67b3b4a6f51608f0c3c82fa662100b0 25-May-2012 Benjamin Peterson <benjamin@python.org> use PyDict_Contains
/external/python/cpython3/Modules/zipimport.c
a6a7a1accfa07c4b2666796c88392c1b1a078bee 25-May-2012 Benjamin Peterson <benjamin@python.org> return NULL on error
/external/python/cpython3/Modules/zipimport.c
2d12e1458f0f6af0af350b39552107f2f6fdf363 25-May-2012 Benjamin Peterson <benjamin@python.org> actually return the result
/external/python/cpython3/Modules/zipimport.c
5ed7bd79dfec6b1ef203f022ef662573a93085c4 25-May-2012 Benjamin Peterson <benjamin@python.org> simplify and rewrite the zipimport part of 702009f3c0b1 a bit
/external/python/cpython3/Modules/zipimport.c
209e04c201613b710cafc250e449f9bd2e4cf607 25-May-2012 Benjamin Peterson <benjamin@python.org> plug ref leak
/external/python/cpython3/Modules/zipimport.c
984b11f88fcace98e30decc19bbf9e281355e607 25-May-2012 Eric V. Smith <eric@trueblade.com> issue 14660: Implement PEP 420, namespace packages.
/external/python/cpython3/Modules/zipimport.c
cc6abd56b8197bac713ea8d70ac621e78f5aadd8 31-Jan-2012 Gregory P. Smith <greg@krypto.org> Fix zipimport.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those). Updates the Py_BuildValue format string to match
(including several existing wrong 'i's that should have been 'l's).
ab32066e65f67e14b3af4ed61333ed083446b225 31-Jan-2012 Gregory P. Smith <greg@krypto.org> Fix zip_import.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those) and how they are computed. Py_ssize_t is used for
actual file offsets so that files greater than 2gigs could be supported.
Updates the Py_BuildValue format string to match (including several existing
wrong 'i's that should have been 'l's).
/external/python/cpython3/Modules/zipimport.c
bd206e27a49dd4cc94ee264c706614190ce0eb3c 18-Dec-2011 Victor Stinner <victor.stinner@haypocalc.com> Handle correctly _Py_fopen() error: don't replace the exception
/external/python/cpython3/Modules/zipimport.c
5136ac0ca21a05691978df8d0650f902c8ca3463 13-Jan-2012 Antoine Pitrou <solipsis@pitrou.net> Issue #13645: pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
/external/python/cpython3/Modules/zipimport.c
357347627186a037805b12ff1740d36d0f8e2e11 18-Dec-2011 Victor Stinner <victor.stinner@haypocalc.com> (Merge 3.2) Handle correctly _Py_fopen() error: don't replace the exception
bd0850b8575730fb1ea587a64e95c818e9504c13 18-Dec-2011 Victor Stinner <victor.stinner@haypocalc.com> import.c now catchs _Py_stat() exceptions

_Py_stat() now returns -2 if an exception was raised.
/external/python/cpython3/Modules/zipimport.c
5156f2ca9adb42208546b6f8f0be2adb4f24ebdc 31-Oct-2011 Martin v. Löwis <martin@v.loewis.de> Drop unused variable.
/external/python/cpython3/Modules/zipimport.c
cfa61292767db16bff6bb5c564a802b3e1e7f521 31-Oct-2011 Martin v. Löwis <martin@v.loewis.de> Fix typo.
/external/python/cpython3/Modules/zipimport.c
a72e78b3b137f0ba811761b70dec9637e3d2f37d 31-Oct-2011 Martin v. Löwis <martin@v.loewis.de> Replace Py_UCS4_ API with Unicode API.
/external/python/cpython3/Modules/zipimport.c
bd928fef428e48084ff29ece0e21d07ad86d0793 14-Oct-2011 Martin v. Löwis <martin@v.loewis.de> Rename _Py_identifier to _Py_IDENTIFIER.
/external/python/cpython3/Modules/zipimport.c
3f528f0c1b79f32b1c00348f53f4b5b2007f16c5 11-Oct-2011 Victor Stinner <victor.stinner@haypocalc.com> Fix a compiler warning in zipimport
/external/python/cpython3/Modules/zipimport.c
1ee1b6fe0dd7baca0da50e365929d03d42128705 10-Oct-2011 Martin v. Löwis <martin@v.loewis.de> Use identifier API for PyObject_GetAttrString.
/external/python/cpython3/Modules/zipimport.c
4cb0de246cacc2c4259f7b05529abbcf7ba8e2ff 28-Sep-2011 Georg Brandl <georg@python.org> Rename new macros to conform to naming rules (function macros have "Py" prefix, not "PY").
/external/python/cpython3/Modules/zipimport.c
d63a3b8beb4a0841cb59fb3515347ccaab34b733 28-Sep-2011 Martin v. Löwis <martin@v.loewis.de> Implement PEP 393.
/external/python/cpython3/Modules/zipimport.c
9a2261a3729805ca5e5062c37767df80ced9e5df 26-May-2011 Victor Stinner <victor.stinner@haypocalc.com> zipimport: initialize fullpath to NULL

In some cases, fullpath value is used whereas fullpath was not always
initialized. Warning found by the Clang Static Analyzer.
/external/python/cpython3/Modules/zipimport.c
95c7c46077864f6ae9ac6dd1eaf4d79452e7aeb2 21-May-2011 Gregory P. Smith <greg@krypto.org> avoid a compiler warning. the compiler doesn't know that the static
struct guarantees the loop will always be run once to initialize code.
/external/python/cpython3/Modules/zipimport.c
21809a693836ddaa635e72291dbe872adf31cfcd 20-May-2011 Victor Stinner <victor.stinner@haypocalc.com> (Merge 3.2) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
4445ec81c17c672b5d245da7a1af0e0294debcc0 20-May-2011 Victor Stinner <victor.stinner@haypocalc.com> (Merge 3.1) Issue #12124: zipimport doesn't keep a reference to
zlib.decompress() anymore to be able to unload the module.
4925cde1cc20fe559b9c1429a99bf9b1c17f7048 20-May-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
/external/python/cpython3/Modules/zipimport.c
3b3499ba69341a49fc842ce0d4a2f66fcb249a04 16-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11565: Merge with 3.1.
13925008dc11f2a235627dc8c0440c0ce99171d9 16-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11565: Fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython3/Modules/zipimport.c
4969f709cc07088a40574c05724d83cddc8fafc7 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: Merge with 3.1.
42da663e6fe7ecbb89b17d596c76812a91bb99a4 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython3/Modules/zipimport.c
f6b563af2d1d8dc1782546436990c0517f226ccf 15-Mar-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #3080: zipimport has a full unicode suppport

- Use Unicode for module paths and names, self->archive and self->prefix
- Format module names and paths use %R instead of '%U' to escape surrogate
characters (PEP 383)
- Use PyImport_ExecCodeModuleObject() instead of PyImport_ExecCodeModuleEx()
- Use PyImport_AddModuleObject() instead of PyImport_AddModule()
/external/python/cpython3/Modules/zipimport.c
4ee65a96858ab9b54c505bad7f2338a475243343 22-Jan-2011 Victor Stinner <victor.stinner@haypocalc.com> Issue #10955: zipimport uses ASCII at bootstrap

zipimport uses ASCII encoding instead of cp497 to decode filenames, at
bootstrap, if the codec registry is not ready yet. It is still possible to have
non-ASCII filenames using the Unicode flag (UTF-8 encoding) for file entries in
the ZIP file.
/external/python/cpython3/Modules/zipimport.c
07298a1f0434950c927f5d459fe611f73bb6d262 19-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: remove arbitrary length limit from message formats

PyErr_Format() and PyUnicode_FromFormat() are able to allocate the right buffer
size and to catch memory allocation failures.
/external/python/cpython3/Modules/zipimport.c
9e40fad193d8d8365215cf0c23fed990ff0bed9b 19-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: document archive encoding; fix indentation
/external/python/cpython3/Modules/zipimport.c
965a8a1c5b27e81bba6eac11017207e4202125e3 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> Revert r85699 and r85701 (zipimport): fullname is a module name, not a path

UTF-8 is just fine for module names.
/external/python/cpython3/Modules/zipimport.c
8c8ed0a799b41636327bc2950ed8c00d741be97d 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: fix "can't find module ..." error message

I cannot use %U: fullname is a bytes object, not an unicode object. %A format
cannot be used, it adds 'b' (bytes) prefix. So create cant_find_module()
function to decode the filename and raise the error message.
/external/python/cpython3/Modules/zipimport.c
0410656b30df532d18a82e5da201501b76e2b1e3 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: find_module(), is_package() and get_source() supports surrogates

Use PyUnicode_FSConverter to support surrogates in the full name.
/external/python/cpython3/Modules/zipimport.c
269aeb7c0d1f092ba0ff20ff44251fd5f4ff87f2 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: pass path size to make_filename()

Don't hardcode path size in make_filename().
/external/python/cpython3/Modules/zipimport.c
2a94f4c0ef140b1d6de389e406ad8af34afbf167 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> get_code_from_data() uses the filesystem encoding to encode the module path,
instead of utf-8.
/external/python/cpython3/Modules/zipimport.c
d36c8217e130bac34ea8c95c8351c47e24c401e2 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: read_directory() uses cp437 or utf-8 (in strict mode), depending on
the unicode flag, to decode the filename, instead of the filesystem encoding.
Use the same choice than the zipfile module.
/external/python/cpython3/Modules/zipimport.c
08654e18eed3c8b0224100fe270da618d60d6eb5 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: get_module_code() returns modpath as a Unicode object

... instead of a char*. Encode the module path to the fileystem encoding
(for PyImport_ExecCodeModuleEx) instead of utf-8.
/external/python/cpython3/Modules/zipimport.c
26fabe13698addebe83e1a57daa8f180c9ad8e1d 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimporter_load_module() doesn't destroy mod on error

PyImport_AddModule() returns a borrowed reference. Don't display "import ... #
loaded from Zip ..." on error.
/external/python/cpython3/Modules/zipimport.c
72f767e601651f3cedb169491ab3b141eb559d53 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: encode the prefix to the fileystem encoding
/external/python/cpython3/Modules/zipimport.c
353349caebeb64b7773d494227c53553a9e7444f 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport, get_module_code(): avoid useless _PyUnicode_AsString()
/external/python/cpython3/Modules/zipimport.c
c342fca2229c6e3badd2f1f3e4e053785ec1aea9 18-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: fix indentation
/external/python/cpython3/Modules/zipimport.c
5a7913eb3bf390a2f3fd28116fc789bf2c7e4b64 16-Oct-2010 Victor Stinner <victor.stinner@haypocalc.com> zipimport: catch _PyUnicode_AsString() failure in get_code_from_data()

It occurs if the path contains surrogates.
/external/python/cpython3/Modules/zipimport.c
028dd97dfbabd14687bca109d6328fc734e48eeb 17-Aug-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #9425: zipimporter_repr() uses unicode
/external/python/cpython3/Modules/zipimport.c
60fe8d902d12c0392dbcfaa0ba008f05a55ca460 17-Aug-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #9425: get_data() uses an unicode path
/external/python/cpython3/Modules/zipimport.c
2460a43a6569fbf240c5a72d0b052565617213eb 16-Aug-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #9425: read_directory() is fully unicode compliant

zipimport is now able to load a module with an unencodable filename.
/external/python/cpython3/Modules/zipimport.c
2b8dab7050fa678de448260bf3670029afe0dc56 14-Aug-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #9425: zipimporter_init() is fully unicode compliant
/external/python/cpython3/Modules/zipimport.c
823de0028639ef94a58a0a8652e8e7e15eeee198 21-Jul-2010 Brian Curtin <brian.curtin@gmail.com> Merged revisions 83009 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r83009 | brian.curtin | 2010-07-20 20:44:19 -0500 (Tue, 20 Jul 2010) | 2 lines

Fix #9316. if/is grammar corrections.
........
/external/python/cpython3/Modules/zipimport.c
3283973949796dc6d1542cc14592e6447099717d 21-Jul-2010 Brian Curtin <brian.curtin@gmail.com> Fix #9316. if/is grammar corrections.
/external/python/cpython3/Modules/zipimport.c
7f14f0d8a0228c50d5b5de2acbfe9a64ebc6749a 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines

Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

Untabify C files. Will watch buildbots.
........
................
/external/python/cpython3/Modules/zipimport.c
f95a1b3c53bdd678b64aa608d4375660033460c3 09-May-2010 Antoine Pitrou <solipsis@pitrou.net> Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines

Untabify C files. Will watch buildbots.
........
/external/python/cpython3/Modules/zipimport.c
38c36f857600c72a094c65010d51342a1fd73658 21-Mar-2010 Victor Stinner <victor.stinner@haypocalc.com> Merged revisions 78875 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r78875 | victor.stinner | 2010-03-12 18:00:41 +0100 (ven., 12 mars 2010) | 5 lines

Issue #6697: use %U format instead of _PyUnicode_AsString(), because
_PyUnicode_AsString() was not checked for error (NULL).

The unicode string is no more truncated to 200 or 400 *bytes*.
........
/external/python/cpython3/Modules/zipimport.c
3f1af5c42e915775e9cc32224e090b05430a23de 12-Mar-2010 Victor Stinner <victor.stinner@haypocalc.com> Issue #6697: use %U format instead of _PyUnicode_AsString(), because
_PyUnicode_AsString() was not checked for error (NULL).

The unicode string is no more truncated to 200 or 400 *bytes*.
/external/python/cpython3/Modules/zipimport.c
7f8ed815dbf02c34b5d5c1fc66c43717a051b184 17-May-2009 Georg Brandl <georg@python.org> Fix a warning.
/external/python/cpython3/Modules/zipimport.c
9a1d6e3022c8eb3cc3b05a30ea975da971bd5938 08-Feb-2009 Nick Coghlan <ncoghlan@gmail.com> Merged revisions 69425 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r69425 | nick.coghlan | 2009-02-08 13:17:00 +1000 (Sun, 08 Feb 2009) | 1 line

Issue #4512 closeout: Make ZipImport.get_filename() a public method
........
/external/python/cpython3/Modules/zipimport.c
e94c679df0b632bc929936ca54f0de006e1a6dc2 02-Feb-2009 Mark Dickinson <dickinsm@gmail.com> Issue #1717: rename tp_compare to tp_reserved. I'll change the
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
/external/python/cpython3/Modules/zipimport.c
f088e5e6cc0e7ad7991a910be13510ca33e91958 14-Dec-2008 Nick Coghlan <ncoghlan@gmail.com> Merged revisions 67750-67751 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r67750 | nick.coghlan | 2008-12-14 20:54:50 +1000 (Sun, 14 Dec 2008) | 1 line

Fix several issues relating to access to source code inside zipfiles. Initial work by Alexander Belopolsky. See Misc/NEWS in this checkin for details.
........
r67751 | nick.coghlan | 2008-12-14 21:09:40 +1000 (Sun, 14 Dec 2008) | 1 line

Add file that was missed from r67750
........
/external/python/cpython3/Modules/zipimport.c
693fc4604f9dd251949638228e282a0c8757b4ca 06-Sep-2008 Gregory P. Smith <greg@mad-scientist.com> Fixes release blocker issue #3492 and #3790.

Make zlib and zipimport to return bytes instead of bytearray and use bytes
rather than bytearray for their internal leftover data storages.
/external/python/cpython3/Modules/zipimport.c
4cc0f24857c345ba99691b2ae6829c6ce3c0edcd 07-Aug-2008 Marc-André Lemburg <mal@egenix.com> Rename PyUnicode_AsString -> _PyUnicode_AsString and
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark
them for interpreter internal use only.

We'll have to rework these APIs or create new ones for the
purpose of accessing the UTF-8 representation of Unicode objects
for 3.1.
/external/python/cpython3/Modules/zipimport.c
1a21451b1d73b65af949193208372e86bf308411 11-Jun-2008 Martin v. Löwis <martin@v.loewis.de> Implement PEP 3121: new module initialization and finalization API.
/external/python/cpython3/Modules/zipimport.c
9c4756ea265b5ebd71c9ae59f3673c7cecb6f060 26-May-2008 Christian Heimes <christian@cheimes.de> Renamed PyBytes to PyByteArray
/external/python/cpython3/Modules/zipimport.c
8ae3e055a51e4cddce90d0faad79ad27e21942c2 16-May-2008 Alexandre Vassalotti <alexandre@peadrop.com> Merged revisions 63066-63076,63079,63081-63085,63087-63097,63099,63101-63104 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r63066 | georg.brandl | 2008-05-11 10:56:04 -0400 (Sun, 11 May 2008) | 2 lines

#2709 followup: better description of Tk's pros and cons.
........
r63067 | georg.brandl | 2008-05-11 11:05:13 -0400 (Sun, 11 May 2008) | 2 lines

#1326: document and test zipimporter.archive and zipimporter.prefix.
........
r63068 | georg.brandl | 2008-05-11 11:07:39 -0400 (Sun, 11 May 2008) | 2 lines

#2816: clarify error messages for EOF while scanning strings.
........
r63069 | georg.brandl | 2008-05-11 11:17:41 -0400 (Sun, 11 May 2008) | 3 lines

#2787: Flush stdout after writing test name, helpful when running
hanging or long-running tests. Patch by Adam Olsen.
........
r63070 | georg.brandl | 2008-05-11 11:20:16 -0400 (Sun, 11 May 2008) | 3 lines

#2803: fix wrong invocation of heappush in seldom-reached code.
Thanks to Matt Harden.
........
r63073 | benjamin.peterson | 2008-05-11 12:38:07 -0400 (Sun, 11 May 2008) | 2 lines

broaden .bzrignore
........
r63076 | andrew.kuchling | 2008-05-11 15:15:52 -0400 (Sun, 11 May 2008) | 1 line

Add message to test assertion
........
r63083 | andrew.kuchling | 2008-05-11 16:08:33 -0400 (Sun, 11 May 2008) | 1 line

Try setting HOME env.var to fix test on Win32
........
r63092 | georg.brandl | 2008-05-11 16:53:55 -0400 (Sun, 11 May 2008) | 2 lines

#2809 followup: even better split docstring.
........
r63094 | georg.brandl | 2008-05-11 17:03:42 -0400 (Sun, 11 May 2008) | 4 lines

- #2250: Exceptions raised during evaluation of names in rlcompleter's
``Completer.complete()`` method are now caught and ignored.
........
r63095 | georg.brandl | 2008-05-11 17:16:37 -0400 (Sun, 11 May 2008) | 2 lines

Clarify os.strerror()s exception behavior.
........
r63097 | georg.brandl | 2008-05-11 17:34:10 -0400 (Sun, 11 May 2008) | 2 lines

#2535: remove duplicated method.
........
r63104 | alexandre.vassalotti | 2008-05-11 19:04:27 -0400 (Sun, 11 May 2008) | 2 lines

Moved the Queue module stub in lib-old.
........
/external/python/cpython3/Modules/zipimport.c
ec924c995c95198e4391f426a6581e5ccedc1bc6 07-May-2008 Alexandre Vassalotti <alexandre@peadrop.com> Reverted (partially) patch r62667 to zipimport.c.

test_pkgutil and test_zipimport are failing on the amd64-gentoo
buildbot due to a yet unknown change introduced by r62667. To find
out what is causing the failure, I am reverting partially r62667.
/external/python/cpython3/Modules/zipimport.c
a85998af7c44c047cb4e35cfa8373330e3f45088 03-May-2008 Alexandre Vassalotti <alexandre@peadrop.com> Issue #1950: Fixed misusage of PyUnicode_AsString().
/external/python/cpython3/Modules/zipimport.c
679db4aa99352abc3c9d93dcfc30e772760a43da 18-Jan-2008 Christian Heimes <christian@cheimes.de> Merged revisions 59985-60000,60002,60005-60007,60009-60042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r59987 | raymond.hettinger | 2008-01-15 21:52:42 +0100 (Tue, 15 Jan 2008) | 1 line

Refactor if/elif chain for clarity and speed. Remove dependency on subclasses having to implement _empty and _full.
........
r59988 | raymond.hettinger | 2008-01-15 22:22:47 +0100 (Tue, 15 Jan 2008) | 1 line

Fix-up half-written paragraph in the docs
........
r59989 | amaury.forgeotdarc | 2008-01-15 22:25:11 +0100 (Tue, 15 Jan 2008) | 3 lines

test_doctest fails since r59984.
Not sure if these are the correct values, but save_stdout has to be set before its usage...
........
r59992 | andrew.kuchling | 2008-01-16 01:32:03 +0100 (Wed, 16 Jan 2008) | 1 line

Docstring typos
........
r59993 | andrew.kuchling | 2008-01-16 04:17:25 +0100 (Wed, 16 Jan 2008) | 1 line

Add PEP 3141 section
........
r59998 | andrew.kuchling | 2008-01-16 14:01:51 +0100 (Wed, 16 Jan 2008) | 1 line

Markup fix
........
r59999 | georg.brandl | 2008-01-16 17:56:29 +0100 (Wed, 16 Jan 2008) | 2 lines

Fix MSDN library URL. (#1854)
........
r60006 | georg.brandl | 2008-01-16 21:27:56 +0100 (Wed, 16 Jan 2008) | 3 lines

Add Python-specific content to Doc dir. Update configuration file
to work with the newest Sphinx.
........
r60007 | georg.brandl | 2008-01-16 21:29:00 +0100 (Wed, 16 Jan 2008) | 2 lines

Doc build should work with 2.4 now.
........
r60009 | raymond.hettinger | 2008-01-17 00:38:16 +0100 (Thu, 17 Jan 2008) | 1 line

Minor wordsmithing.
........
r60010 | raymond.hettinger | 2008-01-17 00:40:45 +0100 (Thu, 17 Jan 2008) | 1 line

Add queues will alternative fetch orders (priority based and stack based).
........
r60011 | raymond.hettinger | 2008-01-17 00:49:35 +0100 (Thu, 17 Jan 2008) | 1 line

Add news entry.
........
r60013 | raymond.hettinger | 2008-01-17 04:02:14 +0100 (Thu, 17 Jan 2008) | 1 line

Make starmap() match its pure python definition and accept any itertable input (not just tuples).
........
r60015 | gregory.p.smith | 2008-01-17 08:43:20 +0100 (Thu, 17 Jan 2008) | 3 lines

Comply with RFC 3207.
Fixes issue 829951 - http://bugs.python.org/issue829951
........
r60018 | gregory.p.smith | 2008-01-17 09:03:17 +0100 (Thu, 17 Jan 2008) | 2 lines

entry for r60015
........
r60019 | raymond.hettinger | 2008-01-17 09:07:05 +0100 (Thu, 17 Jan 2008) | 1 line

Note versionadded.
........
r60020 | gregory.p.smith | 2008-01-17 09:35:49 +0100 (Thu, 17 Jan 2008) | 8 lines

Fixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
- Factor out the duplication of EHLO/HELO in login() and sendmail() to
a new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as
login() checks for the auth extension.
Contributed by Bill Fenner.
........
r60021 | andrew.kuchling | 2008-01-17 13:00:15 +0100 (Thu, 17 Jan 2008) | 1 line

Revise 3141 section a bit; add some Windows items
........
r60022 | brett.cannon | 2008-01-17 19:45:10 +0100 (Thu, 17 Jan 2008) | 2 lines

Fix a function pointer declaration to silence the compiler.
........
r60024 | raymond.hettinger | 2008-01-17 20:31:38 +0100 (Thu, 17 Jan 2008) | 1 line

Issue #1861: Add read-only attribute listing upcoming events in the order they will be run.
........
r60025 | andrew.kuchling | 2008-01-17 20:49:24 +0100 (Thu, 17 Jan 2008) | 1 line

Correction from Jordan Lewis: halfdelay() uses tenths of a second, not milliseconds
........
r60026 | raymond.hettinger | 2008-01-17 23:27:49 +0100 (Thu, 17 Jan 2008) | 1 line

Add advice on choosing between scheduler and threading.Timer().
........
r60028 | christian.heimes | 2008-01-18 00:01:44 +0100 (Fri, 18 Jan 2008) | 2 lines

Updated new property syntax. An elaborate example for subclassing and the getter was missing.
Added comment about VS 2008 and PGO builds.
........
r60029 | raymond.hettinger | 2008-01-18 00:32:01 +0100 (Fri, 18 Jan 2008) | 1 line

Fix-up Timer() example.
........
r60030 | raymond.hettinger | 2008-01-18 00:56:56 +0100 (Fri, 18 Jan 2008) | 1 line

Fix markup
........
r60031 | raymond.hettinger | 2008-01-18 01:10:42 +0100 (Fri, 18 Jan 2008) | 1 line

clearcache() needs to remove the dict as well as clear it.
........
r60033 | andrew.kuchling | 2008-01-18 03:26:16 +0100 (Fri, 18 Jan 2008) | 1 line

Bump verson
........
r60034 | andrew.kuchling | 2008-01-18 03:42:52 +0100 (Fri, 18 Jan 2008) | 1 line

Typo fix
........
r60035 | christian.heimes | 2008-01-18 08:30:20 +0100 (Fri, 18 Jan 2008) | 3 lines

Coverity issue CID #197
var_decl: Declared variable "stm" without initializer
ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"
........
r60036 | christian.heimes | 2008-01-18 08:45:30 +0100 (Fri, 18 Jan 2008) | 11 lines

Coverity issue CID #167
Event alloc_fn: Called allocation function "metacompile" [model]
Event var_assign: Assigned variable "gr" to storage returned from "metacompile"
gr = metacompile(n);
Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model]
g = maketables(gr);
translatelabels(g);
addfirstsets(g);
Event leaked_storage: Returned without freeing storage "gr"
return g;
........
r60038 | christian.heimes | 2008-01-18 09:04:57 +0100 (Fri, 18 Jan 2008) | 3 lines

Coverity issue CID #182
size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes
........
r60041 | christian.heimes | 2008-01-18 09:47:59 +0100 (Fri, 18 Jan 2008) | 4 lines

Coverity issue CID #169
local_ptr_assign_local: Assigning address of stack variable "namebuf" to pointer "filename"
out_of_scope: Variable "namebuf" goes out of scope
use_invalid: Used "filename" pointing to out-of-scope variable "namebuf"
........
r60042 | christian.heimes | 2008-01-18 09:53:45 +0100 (Fri, 18 Jan 2008) | 2 lines

Coverity CID #168
leaked_storage: Returned without freeing storage "fp"
........
/external/python/cpython3/Modules/zipimport.c
072c0f1b7e3d83dec98313bc07ae92ed15fe7e6d 04-Jan-2008 Christian Heimes <christian@cheimes.de> Merged revisions 59666-59679 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r59666 | christian.heimes | 2008-01-02 19:28:32 +0100 (Wed, 02 Jan 2008) | 1 line

Made vs9to8 Unix compatible
........
r59669 | guido.van.rossum | 2008-01-02 20:00:46 +0100 (Wed, 02 Jan 2008) | 2 lines

Patch #1696. Don't attempt to close None in dry-run mode.
........
r59671 | jeffrey.yasskin | 2008-01-03 03:21:52 +0100 (Thu, 03 Jan 2008) | 6 lines

Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
documentation. The only significant difference is that round(x) returns a float
to preserve backward-compatibility. See http://bugs.python.org/issue1689.
........
r59672 | christian.heimes | 2008-01-03 16:41:30 +0100 (Thu, 03 Jan 2008) | 1 line

Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj
........
r59675 | guido.van.rossum | 2008-01-03 20:12:44 +0100 (Thu, 03 Jan 2008) | 4 lines

Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:
Regular Expression inline flags not handled correctly for some unicode
characters. (Forward port from 2.5.2.)
........
r59676 | christian.heimes | 2008-01-03 21:23:15 +0100 (Thu, 03 Jan 2008) | 1 line

Added math.isinf() and math.isnan()
........
r59677 | christian.heimes | 2008-01-03 22:14:48 +0100 (Thu, 03 Jan 2008) | 1 line

Some build bots don't compile mathmodule. There is an issue with the long definition of pi and euler
........
r59678 | christian.heimes | 2008-01-03 23:16:32 +0100 (Thu, 03 Jan 2008) | 2 lines

Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0
Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
........
r59679 | christian.heimes | 2008-01-03 23:32:26 +0100 (Thu, 03 Jan 2008) | 1 line

Added copysign(x, y) function to the math module
........
/external/python/cpython3/Modules/zipimport.c
90aa7646affbaee9628ca6ea6a702aec17b3b550 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.
/external/python/cpython3/Modules/zipimport.c
217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2 02-Dec-2007 Christian Heimes <christian@cheimes.de> Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
/external/python/cpython3/Modules/zipimport.c
3c814d2550b607672365b645b3283685858f7a82 26-Aug-2007 Neal Norwitz <nnorwitz@gmail.com> Use unicode (and bytes as appropriate)
/external/python/cpython3/Modules/zipimport.c
76f2b2416a81380f247637f59a699d42628945e4 17-Aug-2007 Guido van Rossum <guido@python.org> Fix refcount leak, courtesy Christian Heines.
/external/python/cpython3/Modules/zipimport.c
7a98be2efbdc44a6271e3bf6117a1e6c77828414 16-Aug-2007 Skip Montanaro <skip@pobox.com> Remove RISCOS support
/external/python/cpython3/Modules/zipimport.c
ad8d30092ccebad0f940fe0ed3ff25a18c25dddf 03-Aug-2007 Guido van Rossum <guido@python.org> SF patch# 1766592 by Paul Colomiets.
Fix test_zipimport.
/external/python/cpython3/Modules/zipimport.c
9f2e346911988cda95fec7c901e8d10d34fa9563 21-Jul-2007 Martin v. Löwis <martin@v.loewis.de> Merged revisions 56467-56482 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

................
r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines

Merged revisions 56466-56476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines

PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
........
................
r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines

PEP 3123: Use proper C inheritance for PyObject.
................
r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines

Add longintrepr.h to Python.h, so that the compiler can
see that PyFalse is really some kind of PyObject*.
................
r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines

Qualify SHIFT, MASK, BASE.
................
r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines

Correctly refer to _ob_next.
................
/external/python/cpython3/Modules/zipimport.c
5b0443cf3ef5799cd34fc5975b3225ecd07233ef 05-Jun-2007 Walter Dörwald <walter@livinglogic.de> Use PyUnicode_FromFormat() directly in
zipimporter_repr().
/external/python/cpython3/Modules/zipimport.c
1ab833082738ced53318aca05901e596d5ede683 18-May-2007 Walter Dörwald <walter@livinglogic.de> Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror
PyString_Concat() and PyString_ConcatAndDel() (the name PyUnicode_Concat()
was already taken).

Change PyObject_Repr() to always return a unicode object.

Update all repr implementations to return unicode objects.

Add a function PyObject_ReprStr8() that calls PyObject_Repr() and converts
the result to an 8bit string.

Use PyObject_ReprStr8() where using PyObject_Repr() can't be done
straightforward.
/external/python/cpython3/Modules/zipimport.c
00ee7baf49430d8a6eed355a5fd7a05179325747 21-Aug-2006 Thomas Wouters <thomas@python.org> Merge current trunk into p3yk. This includes the PyNumber_Index API change,
which unfortunately means the errors from the bytes type change somewhat:

bytes([300]) still raises a ValueError, but bytes([10**100]) now raises a
TypeError (either that, or bytes(1.0) also raises a ValueError --
PyNumber_AsSsize_t() can only raise one type of exception.)

Merged revisions 51188-51433 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r51189 | kurt.kaiser | 2006-08-10 19:11:09 +0200 (Thu, 10 Aug 2006) | 4 lines

Retrieval of previous shell command was not always preserving indentation
since 1.2a1) Patch 1528468 Tal Einat.
........
r51190 | guido.van.rossum | 2006-08-10 19:41:07 +0200 (Thu, 10 Aug 2006) | 3 lines

Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.
SF bug #1112549.
........
r51191 | guido.van.rossum | 2006-08-10 19:42:50 +0200 (Thu, 10 Aug 2006) | 2 lines

News item for SF bug 1112549.
........
r51192 | guido.van.rossum | 2006-08-10 20:09:25 +0200 (Thu, 10 Aug 2006) | 2 lines

Fix title -- it's rc1, not beta3.
........
r51194 | martin.v.loewis | 2006-08-10 21:04:00 +0200 (Thu, 10 Aug 2006) | 3 lines

Update dangling references to the 3.2 database to
mention that this is UCD 4.1 now.
........
r51195 | tim.peters | 2006-08-11 00:45:34 +0200 (Fri, 11 Aug 2006) | 6 lines

Followup to bug #1069160.

PyThreadState_SetAsyncExc(): internal correctness changes wrt
refcount safety and deadlock avoidance. Also added a basic test
case (relying on ctypes) and repaired the docs.
........
r51196 | tim.peters | 2006-08-11 00:48:45 +0200 (Fri, 11 Aug 2006) | 2 lines

Whitespace normalization.
........
r51197 | tim.peters | 2006-08-11 01:22:13 +0200 (Fri, 11 Aug 2006) | 5 lines

Whitespace normalization broke test_cgi, because a line
of quoted test data relied on preserving a single trailing
blank. Changed the string from raw to regular, and forced
in the trailing blank via an explicit \x20 escape.
........
r51198 | tim.peters | 2006-08-11 02:49:01 +0200 (Fri, 11 Aug 2006) | 10 lines

test_PyThreadState_SetAsyncExc(): This is failing on some
64-bit boxes. I have no idea what the ctypes docs mean
by "integers", and blind-guessing here that it intended to
mean the signed C "int" type, in which case perhaps I can
repair this by feeding the thread id argument to type
ctypes.c_long().

Also made the worker thread daemonic, so it doesn't hang
Python shutdown if the test continues to fail.
........
r51199 | tim.peters | 2006-08-11 05:49:10 +0200 (Fri, 11 Aug 2006) | 6 lines

force_test_exit(): This has been completely ineffective
at stopping test_signal from hanging forever on the Tru64
buildbot. That could be because there's no such thing as
signal.SIGALARM. Changed to the idiotic (but standard)
signal.SIGALRM instead, and added some more debug output.
........
r51202 | neal.norwitz | 2006-08-11 08:09:41 +0200 (Fri, 11 Aug 2006) | 6 lines

Fix the failures on cygwin (2006-08-10 fixed the actual locking issue).

The first hunk changes the colon to an ! like other Windows variants.
We need to always wait on the child so the lock gets released and
no other tests fail. This is the try/finally in the second hunk.
........
r51205 | georg.brandl | 2006-08-11 09:15:38 +0200 (Fri, 11 Aug 2006) | 3 lines

Add Chris McDonough (latest cgi.py patch)
........
r51206 | georg.brandl | 2006-08-11 09:26:10 +0200 (Fri, 11 Aug 2006) | 3 lines

logging's atexit hook now runs even if the rest of the module has
already been cleaned up.
........
r51212 | thomas.wouters | 2006-08-11 17:02:39 +0200 (Fri, 11 Aug 2006) | 4 lines


Add ignore of *.pyc and *.pyo to Lib/xml/etree/.
........
r51215 | thomas.heller | 2006-08-11 21:55:35 +0200 (Fri, 11 Aug 2006) | 7 lines

When a ctypes C callback function is called, zero out the result
storage before converting the result to C data. See the comment in
the code for details.

Provide a better context for errors when the conversion of a callback
function's result cannot be converted.
........
r51218 | neal.norwitz | 2006-08-12 03:43:40 +0200 (Sat, 12 Aug 2006) | 6 lines

Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.

This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
........
r51219 | neal.norwitz | 2006-08-12 03:45:47 +0200 (Sat, 12 Aug 2006) | 9 lines

Even though _Py_Mangle() isn't truly public anyone can call it and
there was no verification that privateobj was a PyString. If it wasn't
a string, this could have allowed a NULL pointer to creep in below and crash.

I wonder if this should be PyString_CheckExact? Must identifiers be strings
or can they be subclasses?

Klocwork #275
........
r51220 | neal.norwitz | 2006-08-12 03:46:42 +0200 (Sat, 12 Aug 2006) | 5 lines

It's highly unlikely, though possible for PyEval_Get*() to return NULLs.
So be safe and do an XINCREF.

Klocwork # 221-222.
........
r51221 | neal.norwitz | 2006-08-12 03:47:59 +0200 (Sat, 12 Aug 2006) | 7 lines

This code is actually not used unless WITHOUT_COMPLEX is defined.
However, there was no error checking that PyFloat_FromDouble returned
a valid pointer. I believe this change is correct as it seemed
to follow other code in the area.

Klocwork # 292.
........
r51222 | neal.norwitz | 2006-08-12 03:49:12 +0200 (Sat, 12 Aug 2006) | 5 lines

Handle NULL nodes while parsing. I'm not entirely sure this is correct.
There might be something else that needs to be done to setup the error.

Klocwork #295.
........
r51223 | neal.norwitz | 2006-08-12 03:50:38 +0200 (Sat, 12 Aug 2006) | 6 lines

If _stat_float_times is false, we will try to INCREF ival which could be NULL.
Return early in that case. The caller checks for PyErr_Occurred so this
should be ok.

Klocwork #297
........
r51224 | neal.norwitz | 2006-08-12 03:51:12 +0200 (Sat, 12 Aug 2006) | 3 lines

Move the assert which checks for a NULL pointer first.
Klocwork #274.
........
r51225 | neal.norwitz | 2006-08-12 03:53:28 +0200 (Sat, 12 Aug 2006) | 5 lines

Try to handle a malloc failure. I'm not entirely sure this is correct.
There might be something else we need to do to handle the exception.

Klocwork # 212-213
........
r51226 | neal.norwitz | 2006-08-12 03:57:47 +0200 (Sat, 12 Aug 2006) | 6 lines

I'm not sure why this code allocates this string for the error message.
I think it would be better to always use snprintf and have the format
limit the size of the name appropriately (like %.200s).

Klocwork #340
........
r51227 | neal.norwitz | 2006-08-12 04:06:34 +0200 (Sat, 12 Aug 2006) | 3 lines

Check returned pointer is valid.
Klocwork #233
........
r51228 | neal.norwitz | 2006-08-12 04:12:30 +0200 (Sat, 12 Aug 2006) | 1 line

Whoops, how did that get in there. :-) Revert all the parts of 51227 that were not supposed to go it. Only Modules/_ctypes/cfields.c was supposed to be changed
........
r51229 | neal.norwitz | 2006-08-12 04:33:36 +0200 (Sat, 12 Aug 2006) | 4 lines

Don't deref v if it's NULL.

Klocwork #214
........
r51230 | neal.norwitz | 2006-08-12 05:16:54 +0200 (Sat, 12 Aug 2006) | 5 lines

Check return of PyMem_MALLOC (garbage) is non-NULL.
Check seq in both portions of if/else.

Klocwork #289-290.
........
r51231 | neal.norwitz | 2006-08-12 05:17:41 +0200 (Sat, 12 Aug 2006) | 4 lines

PyModule_GetDict() can fail, produce fatal errors if this happens on startup.

Klocwork #298-299.
........
r51232 | neal.norwitz | 2006-08-12 05:18:50 +0200 (Sat, 12 Aug 2006) | 5 lines

Verify verdat which is returned from malloc is not NULL.
Ensure we don't pass NULL to free.

Klocwork #306 (at least the first part, checking malloc)
........
r51233 | tim.peters | 2006-08-12 06:42:47 +0200 (Sat, 12 Aug 2006) | 35 lines

test_signal: Signal handling on the Tru64 buildbot
appears to be utterly insane. Plug some theoretical
insecurities in the test script:

- Verify that the SIGALRM handler was actually installed.

- Don't call alarm() before the handler is installed.

- Move everything that can fail inside the try/finally,
so the test cleans up after itself more often.

- Try sending all the expected signals in
force_test_exit(), not just SIGALRM. Since that was
fixed to actually send SIGALRM (instead of invisibly
dying with an AttributeError), we've seen that sending
SIGALRM alone does not stop this from hanging.

- Move the "kill the child" business into the finally
clause, so the child doesn't survive test failure
to send SIGALRM to other tests later (there are also
baffling SIGALRM-related failures in test_socket).

- Cancel the alarm in the finally clause -- if the
test dies early, we again don't want SIGALRM showing
up to confuse a later test.

Alas, this still relies on timing luck wrt the spawned
script that sends the test signals, but it's hard to see
how waiting for seconds can so often be so unlucky.

test_threadedsignals: curiously, this test never fails
on Tru64, but doesn't normally signal SIGALRM. Anyway,
fixed an obvious (but probably inconsequential) logic
error.
........
r51234 | tim.peters | 2006-08-12 07:17:41 +0200 (Sat, 12 Aug 2006) | 8 lines

Ah, fudge. One of the prints here actually "shouldn't be"
protected by "if verbose:", which caused the test to fail on
all non-Windows boxes.

Note that I deliberately didn't convert this to unittest yet,
because I expect it would be even harder to debug this on Tru64
after conversion.
........
r51235 | georg.brandl | 2006-08-12 10:32:02 +0200 (Sat, 12 Aug 2006) | 3 lines

Repair logging test spew caused by rev. 51206.
........
r51236 | neal.norwitz | 2006-08-12 19:03:09 +0200 (Sat, 12 Aug 2006) | 8 lines

Patch #1538606, Patch to fix __index__() clipping.

I modified this patch some by fixing style, some error checking, and adding
XXX comments. This patch requires review and some changes are to be expected.
I'm checking in now to get the greatest possible review and establish a
baseline for moving forward. I don't want this to hold up release if possible.
........
r51238 | neal.norwitz | 2006-08-12 20:44:06 +0200 (Sat, 12 Aug 2006) | 10 lines

Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbots
were failing due to inappropriate clipping of numbers larger than 2**31
with new-style classes. (typeobject.c) In reviewing the code for classic
classes, there were 2 problems. Any negative value return could be returned.
Always return -1 if there was an error. Also make the checks similar
with the new-style classes. I believe this is correct for 32 and 64 bit
boxes, including Windows64.

Add a test of classic classes too.
........
r51240 | neal.norwitz | 2006-08-13 02:20:49 +0200 (Sun, 13 Aug 2006) | 1 line

SF bug #1539336, distutils example code missing
........
r51245 | neal.norwitz | 2006-08-13 20:10:10 +0200 (Sun, 13 Aug 2006) | 6 lines

Move/copy assert for tstate != NULL before first use.
Verify that PyEval_Get{Globals,Locals} returned valid pointers.

Klocwork 231-232
........
r51246 | neal.norwitz | 2006-08-13 20:10:28 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle a whole lot of failures from PyString_FromInternedString().

Should fix most of Klocwork 234-272.
........
r51247 | neal.norwitz | 2006-08-13 20:10:47 +0200 (Sun, 13 Aug 2006) | 8 lines

cpathname could be NULL if it was longer than MAXPATHLEN. Don't try
to write the .pyc to NULL.

Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.

Klocwork 282, 283, 285
........
r51248 | neal.norwitz | 2006-08-13 20:11:08 +0200 (Sun, 13 Aug 2006) | 6 lines

Fix segfault when doing string formatting on subclasses of long if
__oct__, __hex__ don't return a string.

Klocwork 308
........
r51250 | neal.norwitz | 2006-08-13 20:11:27 +0200 (Sun, 13 Aug 2006) | 5 lines

Check return result of PyModule_GetDict().
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
........
r51251 | neal.norwitz | 2006-08-13 20:11:43 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle malloc and fopen failures more gracefully.

Klocwork 180-181
........
r51252 | neal.norwitz | 2006-08-13 20:12:03 +0200 (Sun, 13 Aug 2006) | 7 lines

It's very unlikely, though possible that source is not a string. Verify
that PyString_AsString() returns a valid pointer. (The problem can
arise when zlib.decompress doesn't return a string.)

Klocwork 346
........
r51253 | neal.norwitz | 2006-08-13 20:12:26 +0200 (Sun, 13 Aug 2006) | 5 lines

Handle failures from lookup.

Klocwork 341-342
........
r51254 | neal.norwitz | 2006-08-13 20:12:45 +0200 (Sun, 13 Aug 2006) | 6 lines

Handle failure from PyModule_GetDict() (Klocwork 208).

Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
........
r51255 | neal.norwitz | 2006-08-13 20:13:02 +0200 (Sun, 13 Aug 2006) | 4 lines

Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
........
r51256 | neal.norwitz | 2006-08-13 20:13:36 +0200 (Sun, 13 Aug 2006) | 4 lines

Handle malloc failure.

Klocwork 281
........
r51258 | neal.norwitz | 2006-08-13 20:40:39 +0200 (Sun, 13 Aug 2006) | 4 lines

Handle alloca failures.

Klocwork 225-228
........
r51259 | neal.norwitz | 2006-08-13 20:41:15 +0200 (Sun, 13 Aug 2006) | 1 line

Get rid of compiler warning
........
r51261 | neal.norwitz | 2006-08-14 02:51:15 +0200 (Mon, 14 Aug 2006) | 1 line

Ignore pgen.exe and kill_python.exe for cygwin
........
r51262 | neal.norwitz | 2006-08-14 02:59:03 +0200 (Mon, 14 Aug 2006) | 4 lines

Can't return NULL from a void function. If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
........
r51263 | neal.norwitz | 2006-08-14 03:49:54 +0200 (Mon, 14 Aug 2006) | 1 line

Update purify doc some.
........
r51264 | thomas.heller | 2006-08-14 09:13:05 +0200 (Mon, 14 Aug 2006) | 2 lines

Remove unused, buggy test function.
Fixes klockwork issue #207.
........
r51265 | thomas.heller | 2006-08-14 09:14:09 +0200 (Mon, 14 Aug 2006) | 2 lines

Check for NULL return value from new_CArgObject().
Fixes klockwork issues #183, #184, #185.
........
r51266 | thomas.heller | 2006-08-14 09:50:14 +0200 (Mon, 14 Aug 2006) | 2 lines

Check for NULL return value of GenericCData_new().
Fixes klockwork issues #188, #189.
........
r51274 | thomas.heller | 2006-08-14 12:02:24 +0200 (Mon, 14 Aug 2006) | 2 lines

Revert the change that tries to zero out a closure's result storage
area because the size if unknown in source/callproc.c.
........
r51276 | marc-andre.lemburg | 2006-08-14 12:55:19 +0200 (Mon, 14 Aug 2006) | 11 lines

Slightly revised version of patch #1538956:

Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.

All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
........
r51277 | thomas.heller | 2006-08-14 13:17:48 +0200 (Mon, 14 Aug 2006) | 13 lines

Apply the patch #1532975 plus ideas from the patch #1533481.

ctypes instances no longer have the internal and undocumented
'_as_parameter_' attribute which was used to adapt them to foreign
function calls; this mechanism is replaced by a function pointer in
the type's stgdict.

In the 'from_param' class methods, try the _as_parameter_ attribute if
other conversions are not possible.

This makes the documented _as_parameter_ mechanism work as intended.

Change the ctypes version number to 1.0.1.
........
r51278 | marc-andre.lemburg | 2006-08-14 13:44:34 +0200 (Mon, 14 Aug 2006) | 3 lines

Readd NEWS items that were accidentally removed by r51276.
........
r51279 | georg.brandl | 2006-08-14 14:36:06 +0200 (Mon, 14 Aug 2006) | 3 lines

Improve markup in PyUnicode_RichCompare.
........
r51280 | marc-andre.lemburg | 2006-08-14 14:57:27 +0200 (Mon, 14 Aug 2006) | 3 lines

Correct an accidentally removed previous patch.
........
r51281 | thomas.heller | 2006-08-14 18:17:41 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1536908: Add support for AMD64 / OpenBSD.
Remove the -no-stack-protector compiler flag for OpenBSD
as it has been reported to be unneeded.
........
r51282 | thomas.heller | 2006-08-14 18:20:04 +0200 (Mon, 14 Aug 2006) | 1 line

News item for rev 51281.
........
r51283 | georg.brandl | 2006-08-14 22:25:39 +0200 (Mon, 14 Aug 2006) | 3 lines

Fix refleak introduced in rev. 51248.
........
r51284 | georg.brandl | 2006-08-14 23:34:08 +0200 (Mon, 14 Aug 2006) | 5 lines

Make tabnanny recognize IndentationErrors raised by tokenize.
Add a test to test_inspect to make sure indented source
is recognized correctly. (fixes #1224621)
........
r51285 | georg.brandl | 2006-08-14 23:42:55 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1535500: fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
........
r51287 | georg.brandl | 2006-08-14 23:45:32 +0200 (Mon, 14 Aug 2006) | 3 lines

Add an additional test: BZ2File write methods should raise IOError
when file is read-only.
........
r51289 | georg.brandl | 2006-08-14 23:55:28 +0200 (Mon, 14 Aug 2006) | 3 lines

Patch #1536071: trace.py should now find the full module name of a
file correctly even on Windows.
........
r51290 | georg.brandl | 2006-08-15 00:01:24 +0200 (Tue, 15 Aug 2006) | 3 lines

Cookie.py shouldn't "bogusly" use string._idmap.
........
r51291 | georg.brandl | 2006-08-15 00:10:24 +0200 (Tue, 15 Aug 2006) | 3 lines

Patch #1511317: don't crash on invalid hostname info
........
r51292 | tim.peters | 2006-08-15 02:25:04 +0200 (Tue, 15 Aug 2006) | 2 lines

Whitespace normalization.
........
r51293 | neal.norwitz | 2006-08-15 06:14:57 +0200 (Tue, 15 Aug 2006) | 3 lines

Georg fixed one of my bugs, so I'll repay him with 2 NEWS entries.
Now we're even. :-)
........
r51295 | neal.norwitz | 2006-08-15 06:58:28 +0200 (Tue, 15 Aug 2006) | 8 lines

Fix the test for SocketServer so it should pass on cygwin and not fail
sporadically on other platforms. This is really a band-aid that doesn't
fix the underlying issue in SocketServer. It's not clear if it's worth
it to fix SocketServer, however, I opened a bug to track it:

http://python.org/sf/1540386
........
r51296 | neal.norwitz | 2006-08-15 06:59:30 +0200 (Tue, 15 Aug 2006) | 3 lines

Update the docstring to use a version a little newer than 1999. This was
taken from a Debian patch. Should we update the version for each release?
........
r51298 | neal.norwitz | 2006-08-15 08:29:03 +0200 (Tue, 15 Aug 2006) | 2 lines

Subclasses of int/long are allowed to define an __index__.
........
r51300 | thomas.heller | 2006-08-15 15:07:21 +0200 (Tue, 15 Aug 2006) | 1 line

Check for NULL return value from new_CArgObject calls.
........
r51303 | kurt.kaiser | 2006-08-16 05:15:26 +0200 (Wed, 16 Aug 2006) | 2 lines

The 'with' statement is now a Code Context block opener
........
r51304 | anthony.baxter | 2006-08-16 05:42:26 +0200 (Wed, 16 Aug 2006) | 1 line

preparing for 2.5c1
........
r51305 | anthony.baxter | 2006-08-16 05:58:37 +0200 (Wed, 16 Aug 2006) | 1 line

preparing for 2.5c1 - no, really this time
........
r51306 | kurt.kaiser | 2006-08-16 07:01:42 +0200 (Wed, 16 Aug 2006) | 9 lines

Patch #1540892: site.py Quitter() class attempts to close sys.stdin
before raising SystemExit, allowing IDLE to honor quit() and exit().

M Lib/site.py
M Lib/idlelib/PyShell.py
M Lib/idlelib/CREDITS.txt
M Lib/idlelib/NEWS.txt
M Misc/NEWS
........
r51307 | ka-ping.yee | 2006-08-16 09:02:50 +0200 (Wed, 16 Aug 2006) | 6 lines

Update code and tests to support the 'bytes_le' attribute (for
little-endian byte order on Windows), and to work around clocks
with low resolution yielding duplicate UUIDs.

Anthony Baxter has approved this change.
........
r51308 | kurt.kaiser | 2006-08-16 09:04:17 +0200 (Wed, 16 Aug 2006) | 2 lines

Get quit() and exit() to work cleanly when not using subprocess.
........
r51309 | marc-andre.lemburg | 2006-08-16 10:13:26 +0200 (Wed, 16 Aug 2006) | 2 lines

Revert to having static version numbers again.
........
r51310 | martin.v.loewis | 2006-08-16 14:55:10 +0200 (Wed, 16 Aug 2006) | 2 lines

Build _hashlib on Windows. Build OpenSSL with masm assembler code.
Fixes #1535502.
........
r51311 | thomas.heller | 2006-08-16 15:03:11 +0200 (Wed, 16 Aug 2006) | 6 lines

Add commented assert statements to check that the result of
PyObject_stgdict() and PyType_stgdict() calls are non-NULL before
dereferencing the result. Hopefully this fixes what klocwork is
complaining about.

Fix a few other nits as well.
........
r51312 | anthony.baxter | 2006-08-16 15:08:25 +0200 (Wed, 16 Aug 2006) | 1 line

news entry for 51307
........
r51313 | andrew.kuchling | 2006-08-16 15:22:20 +0200 (Wed, 16 Aug 2006) | 1 line

Add UnicodeWarning
........
r51314 | andrew.kuchling | 2006-08-16 15:41:52 +0200 (Wed, 16 Aug 2006) | 1 line

Bump document version to 1.0; remove pystone paragraph
........
r51315 | andrew.kuchling | 2006-08-16 15:51:32 +0200 (Wed, 16 Aug 2006) | 1 line

Link to docs; remove an XXX comment
........
r51316 | martin.v.loewis | 2006-08-16 15:58:51 +0200 (Wed, 16 Aug 2006) | 1 line

Make cl build step compile-only (/c). Remove libs from source list.
........
r51317 | thomas.heller | 2006-08-16 16:07:44 +0200 (Wed, 16 Aug 2006) | 5 lines

The __repr__ method of a NULL py_object does no longer raise an
exception. Remove a stray '?' character from the exception text
when the value is retrieved of such an object.

Includes tests.
........
r51318 | andrew.kuchling | 2006-08-16 16:18:23 +0200 (Wed, 16 Aug 2006) | 1 line

Update bug/patch counts
........
r51319 | andrew.kuchling | 2006-08-16 16:21:14 +0200 (Wed, 16 Aug 2006) | 1 line

Wording/typo fixes
........
r51320 | thomas.heller | 2006-08-16 17:10:12 +0200 (Wed, 16 Aug 2006) | 9 lines

Remove the special casing of Py_None when converting the return value
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.

(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
........
r51321 | marc-andre.lemburg | 2006-08-16 18:11:01 +0200 (Wed, 16 Aug 2006) | 2 lines

Add NEWS item mentioning the reverted distutils version number patch.
........
r51322 | fredrik.lundh | 2006-08-16 18:47:07 +0200 (Wed, 16 Aug 2006) | 5 lines

SF#1534630

ignore data that arrives before the opening start tag
........
r51324 | andrew.kuchling | 2006-08-16 19:11:18 +0200 (Wed, 16 Aug 2006) | 1 line

Grammar fix
........
r51328 | thomas.heller | 2006-08-16 20:02:11 +0200 (Wed, 16 Aug 2006) | 12 lines

Tutorial:

Clarify somewhat how parameters are passed to functions
(especially explain what integer means).

Correct the table - Python integers and longs can both be used.
Further clarification to the table comparing ctypes types, Python
types, and C types.

Reference:

Replace integer by C ``int`` where it makes sense.
........
r51329 | kurt.kaiser | 2006-08-16 23:45:59 +0200 (Wed, 16 Aug 2006) | 8 lines

File menu hotkeys: there were three 'p' assignments. Reassign the
'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the
Shell menu hotkey from 's' to 'l'.

M Bindings.py
M PyShell.py
M NEWS.txt
........
r51330 | neil.schemenauer | 2006-08-17 01:38:05 +0200 (Thu, 17 Aug 2006) | 3 lines

Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
........
r51342 | martin.v.loewis | 2006-08-17 21:19:32 +0200 (Thu, 17 Aug 2006) | 3 lines

Merge 51340 and 51341 from 2.5 branch:
Leave tk build directory to restore original path.
Invoke debug mk1mf.pl after running Configure.
........
r51354 | martin.v.loewis | 2006-08-18 05:47:18 +0200 (Fri, 18 Aug 2006) | 3 lines

Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
........
r51355 | neal.norwitz | 2006-08-18 05:57:54 +0200 (Fri, 18 Aug 2006) | 1 line

Add template for 2.6 on HEAD
........
r51356 | neal.norwitz | 2006-08-18 06:01:38 +0200 (Fri, 18 Aug 2006) | 1 line

More post-release wibble
........
r51357 | neal.norwitz | 2006-08-18 06:58:33 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Windows bots working again
........
r51358 | neal.norwitz | 2006-08-18 07:10:00 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Windows bots working again. Take 2
........
r51359 | neal.norwitz | 2006-08-18 07:39:20 +0200 (Fri, 18 Aug 2006) | 1 line

Try to get Unix bots install working again.
........
r51360 | neal.norwitz | 2006-08-18 07:41:46 +0200 (Fri, 18 Aug 2006) | 1 line

Set version to 2.6a0, seems more consistent.
........
r51362 | neal.norwitz | 2006-08-18 08:14:52 +0200 (Fri, 18 Aug 2006) | 1 line

More version wibble
........
r51364 | georg.brandl | 2006-08-18 09:27:59 +0200 (Fri, 18 Aug 2006) | 4 lines

Bug #1541682: Fix example in the "Refcount details" API docs.
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
........
r51366 | anthony.baxter | 2006-08-18 09:29:02 +0200 (Fri, 18 Aug 2006) | 3 lines

Updating IDLE's version number to match Python's (as per python-dev
discussion).
........
r51367 | anthony.baxter | 2006-08-18 09:30:07 +0200 (Fri, 18 Aug 2006) | 1 line

RPM specfile updates
........
r51368 | georg.brandl | 2006-08-18 09:35:47 +0200 (Fri, 18 Aug 2006) | 2 lines

Typo in tp_clear docs.
........
r51378 | andrew.kuchling | 2006-08-18 15:57:13 +0200 (Fri, 18 Aug 2006) | 1 line

Minor edits
........
r51379 | thomas.heller | 2006-08-18 16:38:46 +0200 (Fri, 18 Aug 2006) | 6 lines

Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'n not 1000% sure about the non-NULL, raise
a RuntimeError for safety.

This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
........
r51400 | neal.norwitz | 2006-08-19 06:22:33 +0200 (Sat, 19 Aug 2006) | 5 lines

Move initialization of interned strings to before allocating the
object so we don't leak op. (Fixes an earlier patch to this code)

Klockwork #350
........
r51401 | neal.norwitz | 2006-08-19 06:23:04 +0200 (Sat, 19 Aug 2006) | 4 lines

Move assert to after NULL check, otherwise we deref NULL in the assert.

Klocwork #307
........
r51402 | neal.norwitz | 2006-08-19 06:25:29 +0200 (Sat, 19 Aug 2006) | 2 lines

SF #1542693: Remove semi-colon at end of PyImport_ImportModuleEx macro
........
r51403 | neal.norwitz | 2006-08-19 06:28:55 +0200 (Sat, 19 Aug 2006) | 6 lines

Move initialization to after the asserts for non-NULL values.

Klocwork 286-287.

(I'm not backporting this, but if someone wants to, feel free.)
........
r51404 | neal.norwitz | 2006-08-19 06:52:03 +0200 (Sat, 19 Aug 2006) | 6 lines

Handle PyString_FromInternedString() failing (unlikely, but possible).

Klocwork #325

(I'm not backporting this, but if someone wants to, feel free.)
........
r51416 | georg.brandl | 2006-08-20 15:15:39 +0200 (Sun, 20 Aug 2006) | 2 lines

Patch #1542948: fix urllib2 header casing issue. With new test.
........
r51428 | jeremy.hylton | 2006-08-21 18:19:37 +0200 (Mon, 21 Aug 2006) | 3 lines

Move peephole optimizer to separate file.
........
r51429 | jeremy.hylton | 2006-08-21 18:20:29 +0200 (Mon, 21 Aug 2006) | 2 lines

Move peephole optimizer to separate file. (Forgot .h in previous checkin.)
........
r51432 | neal.norwitz | 2006-08-21 19:59:46 +0200 (Mon, 21 Aug 2006) | 5 lines

Fix bug #1543303, tarfile adds padding that breaks gunzip.
Patch # 1543897.

Will backport to 2.5
........
r51433 | neal.norwitz | 2006-08-21 20:01:30 +0200 (Mon, 21 Aug 2006) | 2 lines

Add assert to make Klocwork happy (#276)
........
/external/python/cpython3/Modules/zipimport.c
49fd7fa4431da299196d74087df4a04f99f9c46f 21-Apr-2006 Thomas Wouters <thomas@python.org> Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
number of tests, all because of the codecs/_multibytecodecs issue described
here (it's not a Py3K issue, just something Py3K discovers):
http://mail.python.org/pipermail/python-dev/2006-April/064051.html

Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
tests that are expected to break are:

test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecs
test_multibytecodec

This merge fixes an actual test failure (test_weakref) in this branch,
though, so I believe merging is the right thing to do anyway.
/external/python/cpython3/Modules/zipimport.c
4af5c8cee4885df70884a58e2e74c48984bbe7c2 07-Mar-2006 Hye-Shik Chang <hyeshik@gmail.com> SF #1444030: Fix several potential defects found by Coverity.
(reviewed by Neal Norwitz)
/external/python/cpython3/Modules/zipimport.c
e9b1949f70ff985e17e1ce5592b59073d101bbab 19-Feb-2006 Georg Brandl <georg@python.org> Patch #1352711: make zipimport raise a complete IOError
/external/python/cpython3/Modules/zipimport.c
ad0a4629beac0600c4c4c3167b0d68be57ca674e 16-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Use Py_ssize_t for counts and sizes.
/external/python/cpython3/Modules/zipimport.c
18e165558b24d29e7e0ca501842b9236589b012a 15-Feb-2006 Martin v. Löwis <martin@v.loewis.de> Merge ssize_t branch.
/external/python/cpython3/Modules/zipimport.c
b84b35f02a155238570f8955f8a92d43d21707f5 15-Jan-2006 Fredrik Lundh <fredrik@pythonware.com> the implementation uses ZipImportError, not ZipImporterError...
/external/python/cpython3/Modules/zipimport.c
d39d861a36bf2ff7ccbb8248fa7fb81517923877 08-Jan-2006 Neal Norwitz <nnorwitz@gmail.com> Fix icc warnings: strlen() returns size_t
/external/python/cpython3/Modules/zipimport.c
f5b7fd223967e7e6f1d82c0659b2265a05909719 11-Nov-2005 Fred Drake <fdrake@acm.org> update busted comment
/external/python/cpython3/Modules/zipimport.c
ec97a28b60b40d366379d22876baebcdd06a89ad 21-Oct-2005 Jeremy Hylton <jeremy@alum.mit.edu> Fix a bunch of imports to use code.h instead of compile.h.
Remove duplicate declarations from compile.h
/external/python/cpython3/Modules/zipimport.c
02c42871cf73365dc5b6915cac2b017b2b90c81f 26-Aug-2005 Georg Brandl <georg@python.org> Disallow keyword arguments for type constructors that don't use them.
(fixes bug #1119418)
/external/python/cpython3/Modules/zipimport.c
2c45c9ae57e23001c35c791cf7fc68b55f0d78b6 10-Nov-2004 Raymond Hettinger <python@rcn.com> SF patch 1062495: Modules/zipimport.c does not compile on solaris
(Contributed by Niki W. Waibel.)

Simple renaming to avoid a conflict that prevented compilation on Solaris.
/external/python/cpython3/Modules/zipimport.c
ee8f10fa37335cbbb8830c200edefd91605c22ac 07-Sep-2003 Just van Rossum <just@letterror.com> Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne.
Classical problem with int vs. long mismatch in varargs.
2.3 backport candidate.
/external/python/cpython3/Modules/zipimport.c
354e3d90d346afdc6c70211b130aa76bb18e19ed 22-Jul-2003 Thomas Heller <theller@ctypes.org> Change the zipimport implementation to accept files containing
arbitrary bytes before the actual zip compatible archive. Zipfiles
containing comments at the end of the file are still not supported.

Add a testcase to test_zipimport, and update NEWS.

This closes sf #775637 and sf #669036.
/external/python/cpython3/Modules/zipimport.c
032fffefe69a0bb8b45a2efe3ceb5bc59ffb9850 17-Jul-2003 Jeremy Hylton <jeremy@alum.mit.edu> Remove unused variable.
/external/python/cpython3/Modules/zipimport.c
a94568a7535de60f1144e4eea0d027b87017a4b4 10-May-2003 Martin v. Löwis <martin@v.loewis.de> Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
/external/python/cpython3/Modules/zipimport.c
547eb42d75c888fa5ac43275d3cf874099ea0d78 08-Apr-2003 Just van Rossum <just@letterror.com> tentative fix for #712322: modification time stamp checking failed
when DST began.
/external/python/cpython3/Modules/zipimport.c
29fd2baf82977e66f3ad3869e3d62f12e2200678 23-Mar-2003 Neal Norwitz <nnorwitz@gmail.com> Make private function and data static.
/external/python/cpython3/Modules/zipimport.c
f4ecc751b1c640ab7932be714b099d2eb326d6b3 28-Feb-2003 Just van Rossum <just@letterror.com> use proper constant instead of comment (noted by nnorwitz)
/external/python/cpython3/Modules/zipimport.c
0c0aad948aa3bc3954514d842d28d08a6cc6112f 18-Feb-2003 Neal Norwitz <nnorwitz@gmail.com> Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
Use "l" as that *probably* makes more sense (at least to me it does :-)
And the test passes on the alpha.
/external/python/cpython3/Modules/zipimport.c
5c1ba53f8ca219a22d964324abb76a055ad19feb 17-Feb-2003 Neal Norwitz <nnorwitz@gmail.com> Use correct function name to PyArg_ParseTuple("is_package").

Fix off-by-1 error in normalize_line_endings():
when *p == '\0' the NUL was copied into q and q was auto-incremented,
the loop was broken out of,
then a newline was appended followed by a NUL.
So the function, in effect, was strcpy() but added two extra chars
which was caught by obmalloc in debug mode, since there was only
room for 1 additional newline.

Get test working under regrtest (added test_main).
/external/python/cpython3/Modules/zipimport.c
9a3129c14866f21ce3cee053c085db374cb61b78 03-Jan-2003 Just van Rossum <just@letterror.com> Fix for bug #661136
Lesson learned: kids should not be allowed to use API's starting
with an underscore :-/
zipimport in 2.3a1 is even more broken than I thought: I attemped
to _PyString_Resize a string created by PyString_FromStringAndSize,
which fails for strings with length 0 or 1 since the latter returns
an interned string in those cases. This would cause a SystemError
with empty source files (and no matching pyc) in the zip archive.
I rewrote the offending code to simply allocate a new buffer and
avoid _PyString_Resize altogether.
Added a test that would've caught the problem.
/external/python/cpython3/Modules/zipimport.c
d35c6db526a6ce1656de2c9998a866445fdf5fe4 02-Jan-2003 Just van Rossum <just@letterror.com> Ugh, zipimport is virtually broken in 2.3a1 :-( It worked by accident in
the test set as it only tested with a zip archive in the current directory,
but it doesn't work at all for packages when the zip archive was specified
as an absolute path. It's a real embarrassing bug: a strchr call should
have been strrchr; fever apparently implies dyslexia.

Second stupid bug: the zipimport test failed with a name error
__importer__ (which I had renamed to __loader__ everywhere but here).
I would've sworn I ran the test after that change but that can't be true.
What I don't understand that noone reported a failing test_zipimport.py
before the release of 2.3a1.
/external/python/cpython3/Modules/zipimport.c
3f0b542f2559869715e25164e92e7255220a0ea3 31-Dec-2002 Just van Rossum <just@letterror.com> removed unused get_short() function
/external/python/cpython3/Modules/zipimport.c
f8b6de168bac1a002cf8931d5f601240d5c1b4d4 31-Dec-2002 Just van Rossum <just@letterror.com> - added missing decref
- whitespace normalization
/external/python/cpython3/Modules/zipimport.c
5eaeaf9174b5cbaefd7b36e2c0cb23ddf808c2c0 31-Dec-2002 Jack Jansen <jack.jansen@cwi.nl> Added casts to forestall warnings with MetroWerks.
/external/python/cpython3/Modules/zipimport.c
f271c272a2a98081b787dcd40a973b641fe14ca4 30-Dec-2002 Tim Peters <tim.peters@gmail.com> Squashed compiler wng from MSVC6.
/external/python/cpython3/Modules/zipimport.c
1ea93f2b1d0a165b5f9306c7cb351c595712199e 30-Dec-2002 Tim Peters <tim.peters@gmail.com> Wouldn't compile on Windows; fixed.
/external/python/cpython3/Modules/zipimport.c
52e14d640be3a7fa2c17f5a2a6bc9626d622aa40 30-Dec-2002 Just van Rossum <just@letterror.com> PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files

I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...

Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
/external/python/cpython3/Modules/zipimport.c