Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #28449: tarfile.open() with mode "r" or "r:" now tries to open a tar | Serhiy Storchaka | 2016-10-30 | 1 | -1/+8 |
| | | | | | file with compression before trying to open it without compression. Otherwise it had 50% chance failed with ignore_zeros=True. | ||||
* | #7944: close files explicitly in test_tarfile (backport d560eece0857). | Ezio Melotti | 2016-01-13 | 1 | -278/+365 |
| | |||||
* | Convert test_tarfile to ASCII (backport c1ed490bd266). | Ezio Melotti | 2016-01-13 | 1 | -21/+19 |
| | |||||
* | Backport support.change_cwd() and use it in tests. | Serhiy Storchaka | 2015-09-06 | 1 | -5/+2 |
| | |||||
* | Issue #24259: tarfile now raises a ReadError if an archive is truncated ↵ | Lars Gustäbel | 2015-07-06 | 1 | -0/+24 |
| | | | | inside a data segment. | ||||
* | Issue #24514: tarfile now tolerates number fields consisting of only whitespace. | Lars Gustäbel | 2015-07-02 | 1 | -0/+9 |
| | |||||
* | Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on | Serhiy Storchaka | 2014-07-22 | 1 | -33/+5 |
| | | | | 2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd. | ||||
* | Issue 21044: tarfile.open() now handles fileobj with an integer 'name' | Serhiy Storchaka | 2014-07-16 | 1 | -5/+33 |
| | | | | attribute. Based on patch by Martin Panter. | ||||
* | Issue #19920: Added tests for TarFile.list(). Based on patch by Vajrasky Kok. | Serhiy Storchaka | 2014-02-05 | 1 | -0/+77 |
| | |||||
* | Issue #20243: TarFile no longer raise ReadError when opened in write mode. | Serhiy Storchaka | 2014-01-18 | 1 | -0/+16 |
| | |||||
* | Backported test for issue #20238. | Serhiy Storchaka | 2014-01-18 | 1 | -0/+6 |
| | |||||
* | Issue #20245: The open functions in the tarfile module now correctly handle ↵ | Serhiy Storchaka | 2014-01-18 | 1 | -0/+14 |
| | | | | empty mode. | ||||
* | Backported test for the open of non-existent tarfile. | Serhiy Storchaka | 2014-01-13 | 1 | -0/+8 |
| | |||||
* | Issue #19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-10 | 1 | -11/+6 |
| | |||||
* | Issue #16601: Restarting iteration over tarfile no more continues from where | Serhiy Storchaka | 2013-05-09 | 1 | -0/+8 |
| | | | | it left off. Patch by Michael Birtwell. | ||||
* | Issue #16645: Fix hardlink extracting test for tarfile. | Serhiy Storchaka | 2012-12-30 | 1 | -16/+11 |
| | |||||
* | Issue #16793. Replace deprecated unittest asserts with modern counterparts. | Serhiy Storchaka | 2012-12-27 | 1 | -1/+1 |
| | |||||
* | Issue #14160: TarFile.extractfile() failed to resolve symbolic links when | Lars Gustäbel | 2012-04-24 | 1 | -0/+3 |
| | | | | the links were not located in an archive subdirectory. | ||||
* | Issue #13639: Accept unicode filenames in tarfile.open(mode="w|gz"). | Lars Gustäbel | 2011-12-21 | 1 | -0/+7 |
| | | | | | | Passing a unicode filename to tarfile.open() along with mode "w|gz" failed with a UnicodeError because the filename was not encoded properly before being written to the gzipped stream in the FNAME extra field. | ||||
* | Correctly detect bzip2 compressed streams with blocksizes other than 900k. | Lars Gustäbel | 2011-12-06 | 1 | -0/+17 |
| | |||||
* | Fix closes issue #12088 - fixes the tarfile.extractall issue when the | Senthil Kumaran | 2011-05-17 | 1 | -0/+60 |
| | | | | | symlinks/hardlink was broken. It handles now in a graceful manner (No exception is raised, behavior similar GNU tar). | ||||
* | skip the extractall test on platforms where os.symlink is not available. | Senthil Kumaran | 2011-04-28 | 1 | -0/+1 |
| | |||||
* | Fix closes issue10761: tarfile.extractall failure when symlinked files are ↵ | Senthil Kumaran | 2011-04-28 | 1 | -0/+27 |
| | | | | present. | ||||
* | Issue #8741: Fixed the TarFile.makelink() method that is responsible | Lars Gustäbel | 2010-06-03 | 1 | -0/+45 |
| | | | | | | | | for extracting symbolic and hard link entries as regular files as a work-around on platforms that do not support filesystem links. This stopped working reliably after a change in r74571. I also added a few tests for this functionality. | ||||
* | Issue #8833: tarfile created hard link entries with a size | Lars Gustäbel | 2010-06-03 | 1 | -1/+5 |
| | | | | | field != 0 by mistake. The associated testcase did not expose this bug because it was broken too. | ||||
* | Issue #8464: tarfile.open(name, mode="w|") no longer creates | Lars Gustäbel | 2010-04-29 | 1 | -0/+18 |
| | | | | files with execute permissions set. | ||||
* | Cleanup test_tarfile, and use check_warnings. | Florent Xicluna | 2010-03-20 | 1 | -9/+12 |
| | |||||
* | Issue #7232: Add support for the context manager protocol | Lars Gustäbel | 2010-03-03 | 1 | -0/+60 |
| | | | | to the TarFile class. | ||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -1/+0 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -1/+1 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -3/+1 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -1/+3 |
| | | | | Patch by flox | ||||
* | Add a testcase that checks if the TarFile constructor successfully | Lars Gustäbel | 2009-11-23 | 1 | -0/+18 |
| | | | | closes the internal file object in case of an error (issue #7341). | ||||
* | Issue #6123: Fix opening empty archives and files. | Lars Gustäbel | 2009-11-22 | 1 | -5/+80 |
| | | | | | | | | | | | | | | | | | | | | | | | (Note that an empty archive is not the same as an empty file. An empty archive contains no members and is correctly terminated with an EOF block full of zeros. An empty file contains no data at all.) The problem was that although tarfile was able to create empty archives, it failed to open them raising a ReadError. On the other hand, tarfile opened empty files without error in most read modes and presented them as empty archives. (However, some modes still raised errors: "r|gz" raised ReadError, but "r:gz" worked, "r:bz2" even raised EOFError.) In order to get a more fine-grained control over the various internal error conditions I now split up the HeaderError exception into a number of meaningful sub-exceptions. This makes it easier in the TarFile.next() method to react to the different conditions in the correct way. The visible change in its behaviour now is that tarfile will open empty archives correctly and raise ReadError consistently for empty files. | ||||
* | Issue #7295: Do not use a hardcoded file name in test_tarfile. | Antoine Pitrou | 2009-11-11 | 1 | -7/+3 |
| | |||||
* | Issue #6856: Add a filter keyword argument to TarFile.add(). | Lars Gustäbel | 2009-09-12 | 1 | -0/+28 |
| | | | | | | | | | The filter argument must be a function that takes a TarInfo object argument, changes it and returns it again. If the function returns None the TarInfo object will be excluded from the archive. The exclude argument is deprecated from now on, because it does something similar but is not as flexible. | ||||
* | Issue #6054: Do not normalize stored pathnames. | Lars Gustäbel | 2009-08-28 | 1 | -0/+70 |
| | | | | | | No longer use tarfile.normpath() on pathnames. Store pathnames unchanged, i.e. do not remove "./", "../" and "//" occurrences. However, still convert absolute to relative paths. | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -54/+54 |
| | |||||
* | Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop | Lars Gustäbel | 2009-03-22 | 1 | -0/+25 |
| | | | | | | forever on incomplete input. That caused tarfile.open() to hang when used with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or partial bzip2 compressed data. | ||||
* | Issue #4616: TarFile.utime(): Restore directory times on Windows. | Lars Gustäbel | 2008-12-12 | 1 | -6/+3 |
| | |||||
* | Issue #3838: TarFile object assigned to self.tar should be closed explicitly. | Hirokazu Yamamoto | 2008-09-21 | 1 | -0/+1 |
| | | | | Reviewed by Lars Gustäbel. | ||||
* | Do not close external file objects passed to tarfile.open(mode='w:bz2') | Lars Gustäbel | 2008-05-27 | 1 | -2/+14 |
| | | | | when the TarFile is closed. | ||||
* | Make sure that xstar headers are read correctly. | Lars Gustäbel | 2008-02-11 | 1 | -0/+9 |
| | |||||
* | Issue #1735: TarFile.extractall() now correctly sets | Lars Gustäbel | 2008-01-04 | 1 | -0/+17 |
| | | | | | | directory permissions and times. (will backport to 2.5) | ||||
* | Issue #1531: Read fileobj from the current offset, do not seek to | Lars Gustäbel | 2007-12-01 | 1 | -0/+32 |
| | | | | | | the start. (will backport to 2.5) | ||||
* | TarFile.__init__() no longer fails if no name argument is passed and | Lars Gustäbel | 2007-08-28 | 1 | -1/+15 |
| | | | | | | the fileobj argument has no usable name attribute (e.g. StringIO). (will backport to 2.5) | ||||
* | Added exclude keyword argument to the TarFile.add() method. | Lars Gustäbel | 2007-06-18 | 1 | -0/+21 |
| | |||||
* | Have md5 raise a DeprecationWarning as per PEP 4. | Brett Cannon | 2007-05-30 | 1 | -2/+2 |
| | |||||
* | Added errors argument to TarFile class that allows the user to | Lars Gustäbel | 2007-05-27 | 1 | -65/+181 |
| | | | | | | | | | | | | | | | | | | | | specify an error handling scheme for character conversion. Additional scheme "utf-8" in read mode. Unicode input filenames are now supported by design. The values of the pax_headers dictionary are now limited to unicode objects. Fixed: The prefix field is no longer used in PAX_FORMAT (in conformance with POSIX). Fixed: In read mode use a possible pax header size field. Fixed: Strip trailing slashes from pax header name values. Fixed: Give values in user-specified pax_headers precedence when writing. Added unicode tests. Added pax/regtype4 member to testtar.tar all possible number fields in a pax header. Added two chapters to the documentation about the different formats tarfile.py supports and how unicode issues are handled. | ||||
* | Whitespace normalization. Ugh, we really need to do this more often. | Neal Norwitz | 2007-04-25 | 1 | -1/+0 |
| | | | | You might want to review this change as it's my first time. Be gentle. :-) |