1. 24 Nov, 2009 6 commits
  2. 23 Nov, 2009 7 commits
  3. 22 Nov, 2009 1 commit
    • Lars Gustäbel's avatar
      Merged revisions 76443 via svnmerge from · 9520a430
      Lars Gustäbel authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r76443 | lars.gustaebel | 2009-11-22 19:30:53 +0100 (Sun, 22 Nov 2009) | 24 lines
      
        Issue #6123: Fix opening empty archives and files.
      
        (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.
      ........
      9520a430
  4. 21 Nov, 2009 3 commits
  5. 20 Nov, 2009 1 commit
  6. 19 Nov, 2009 10 commits
  7. 18 Nov, 2009 7 commits
  8. 17 Nov, 2009 3 commits
  9. 16 Nov, 2009 2 commits
    • Mark Dickinson's avatar
      Blocked revisions 76333 via svnmerge · 06bf4994
      Mark Dickinson authored
      ........
        r76333 | mark.dickinson | 2009-11-16 19:17:16 +0000 (Mon, 16 Nov 2009) | 1 line
      
        Silence another MSVC warning about unary minus.
      ........
      06bf4994
    • Mark Dickinson's avatar
      Blocked revisions 76330 via svnmerge · 76e741ac
      Mark Dickinson authored
      ........
        r76330 | mark.dickinson | 2009-11-16 17:33:25 +0000 (Mon, 16 Nov 2009) | 1 line
      
        Silence MSVC warning about unary minus applied to unsigned type.
      ........
      76e741ac