summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
Commit message (Collapse)AuthorAgeFilesLines
* merge backout for #20621Benjamin Peterson2014-02-161-236/+48
|
* merge 3.3Benjamin Peterson2014-01-091-3/+1
|\
| * fix zipimport ref leakBenjamin Peterson2014-01-091-3/+1
| |
* | Fixes issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-48/+238
|\ \ | |/ | | | | | | | | 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).
| * Fixes Issue #19081: When a zipimport .zip file in sys.path being imported fromGregory P. Smith2014-01-081-47/+238
| | | | | | | | | | | | 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).
* | Issue #19515: Remove duplicated identifiers in zipimport.cVictor Stinner2013-11-121-6/+4
| |
* | Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() ↵Victor Stinner2013-10-291-2/+7
| | | | | | | | failures
* | Issue #19428: zipimport now handles errors when reading truncated or invalidVictor Stinner2013-10-291-3/+13
| | | | | | | | ZIP archive.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-2/+2
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | Grammatical mistake in a commentBrett Cannon2013-06-211-1/+1
| |
* | Issue #8745: Small speed up zipimport on Windows. Patch by Catalin Iacob.Serhiy Storchaka2013-02-161-9/+18
|/
* MERGE: Closes #15897: zipimport.c doesn't check return value of fseek()Jesus Cea2012-10-031-7/+36
|\
| * Closes #15897: zipimport.c doesn't check return value of fseek()Jesus Cea2012-10-031-7/+36
| |
* | Fixed two memory leaks in make_filename() in zipimport.c. The allocated ↵Christian Heimes2012-09-101-2/+6
| | | | | | | | buffer wasn't cleaned up in two error cases. CID 486832
* | Closes #15737: Fix potential NULL dereference in zipimport.c.Stefan Krah2012-08-201-2/+2
| |
* | capitialize enum membersBenjamin Peterson2012-05-251-17/+17
| |
* | use PyDict_ContainsBenjamin Peterson2012-05-251-3/+3
| |
* | return NULL on errorBenjamin Peterson2012-05-251-2/+3
| |
* | actually return the resultBenjamin Peterson2012-05-251-1/+1
| |
* | simplify and rewrite the zipimport part of 702009f3c0b1 a bitBenjamin Peterson2012-05-251-51/+41
| |
* | plug ref leakBenjamin Peterson2012-05-251-0/+1
| |
* | issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-8/+140
| |
* | Fix zipimport.c's read_directory() to use appropriate types for the valuesGregory P. Smith2012-01-301-4/+5
|\ \ | |/ | | | | | | | | 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).
| * Fix zip_import.c's read_directory() to use appropriate types for the valuesGregory P. Smith2012-01-301-4/+5
| | | | | | | | | | | | | | | | 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).
* | Issue #13645: pyc files now contain the size of the corresponding sourceAntoine Pitrou2012-01-131-1/+3
| | | | | | | | | | code, to avoid timestamp collisions (especially on filesystems with a low timestamp resolution) when checking for freshness of the bytecode.
* | (Merge 3.2) Handle correctly _Py_fopen() error: don't replace the exceptionVictor Stinner2011-12-181-3/+5
|\ \ | |/
| * Handle correctly _Py_fopen() error: don't replace the exceptionVictor Stinner2011-12-181-3/+5
| |
* | import.c now catchs _Py_stat() exceptionsVictor Stinner2011-12-181-2/+2
| | | | | | | | _Py_stat() now returns -2 if an exception was raised.
* | Drop unused variable.Martin v. Löwis2011-10-311-1/+0
| |
* | Fix typo.Martin v. Löwis2011-10-311-3/+2
| |
* | Replace Py_UCS4_ API with Unicode API.Martin v. Löwis2011-10-311-130/+90
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| |
* | Fix a compiler warning in zipimportVictor Stinner2011-10-111-1/+1
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-2/+3
| |
* | Rename new macros to conform to naming rules (function macros have "Py" ↵Georg Brandl2011-09-281-4/+4
| | | | | | | | prefix, not "PY").
* | Implement PEP 393.Martin v. Löwis2011-09-281-52/+89
| |
* | zipimport: initialize fullpath to NULLVictor Stinner2011-05-261-1/+1
| | | | | | | | | | In some cases, fullpath value is used whereas fullpath was not always initialized. Warning found by the Clang Static Analyzer.
* | avoid a compiler warning. the compiler doesn't know that the staticGregory P. Smith2011-05-211-1/+1
| | | | | | | | struct guarantees the loop will always be run once to initialize code.
* | (Merge 3.2) Issue #12124: zipimport doesn't keep a reference toVictor Stinner2011-05-191-24/+23
|\ \ | |/ | | | | zlib.decompress() anymore to be able to unload the module.
| * (Merge 3.1) Issue #12124: zipimport doesn't keep a reference toVictor Stinner2011-05-191-24/+23
| |\ | | | | | | | | | zlib.decompress() anymore to be able to unload the module.
| | * Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymoreVictor Stinner2011-05-191-24/+23
| | | | | | | | | | | | to be able to unload the module.
* | | Issue #3080: zipimport has a full unicode suppportVictor Stinner2011-03-151-135/+168
|/ / | | | | | | | | | | | | | | - 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()
* | #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
|\ \ | |/
| * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 83009 via svnmerge fromBrian Curtin2010-07-211-3/+3
| | | | | | | | | | | | | | | | | | | | 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. ........
| * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-868/+868
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........ ................
| * Merged revisions 78875 via svnmerge fromVictor Stinner2010-03-211-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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*. ........
* | Issue #10955: zipimport uses ASCII at bootstrapVictor Stinner2011-01-221-1/+19
| | | | | | | | | | | | | | 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.