1. 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
  2. 21 Nov, 2009 3 commits
  3. 20 Nov, 2009 1 commit
  4. 19 Nov, 2009 10 commits
  5. 18 Nov, 2009 7 commits
  6. 17 Nov, 2009 3 commits
  7. 16 Nov, 2009 6 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
    • Mark Dickinson's avatar
      Merged revisions 76308 via svnmerge from · 6ce4a9a9
      Mark Dickinson authored
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r76308 | mark.dickinson | 2009-11-15 16:18:58 +0000 (Sun, 15 Nov 2009) | 3 lines
      
        Issue #7228:  Add '%lld' and '%llu' support to PyFormat_FromString,
        PyFormat_FromStringV and PyErr_Format.
      ........
      6ce4a9a9
    • Nick Coghlan's avatar
      Merged revisions... · 260bd3e5
      Nick Coghlan authored
      Merged revisions 76286-76287,76289-76294,76296-76299,76301-76305,76307,76310-76311,76313-76322 via svnmerge from
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r76286 | nick.coghlan | 2009-11-15 17:30:34 +1000 (Sun, 15 Nov 2009) | 1 line
      
        Issue #6816: expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation.
      ........
        r76321 | nick.coghlan | 2009-11-16 13:55:51 +1000 (Mon, 16 Nov 2009) | 1 line
      
        Account for another cache when hunting ref leaks
      ........
        r76322 | nick.coghlan | 2009-11-16 13:57:32 +1000 (Mon, 16 Nov 2009) | 1 line
      
        Allow for backslashes in file paths passed to the regex engine
      ........
      260bd3e5
    • Benjamin Peterson's avatar
      fix one visible and several possible refleaks in rangeobject.c · 36fbb730
      Benjamin Peterson authored
      In some cases, the code was just reordered to allow for less decrefing.
      36fbb730
    • Benjamin Peterson's avatar
      remove 2.x specific warnings · 91799ae3
      Benjamin Peterson authored
      91799ae3
  8. 15 Nov, 2009 9 commits