1. 05 Nis, 2017 1 kayıt (commit)
  2. 08 Eyl, 2016 1 kayıt (commit)
  3. 02 Kas, 2015 1 kayıt (commit)
  4. 22 May, 2015 1 kayıt (commit)
  5. 09 May, 2015 1 kayıt (commit)
  6. 21 Nis, 2015 1 kayıt (commit)
    • Greg Ward's avatar
      #17445: difflib: add diff_bytes(), to compare bytes rather than str · 4d9d2563
      Greg Ward yazdı
      Some applications (e.g. traditional Unix diff, version control
      systems) neither know nor care about the encodings of the files they
      are comparing. They are textual, but to the diff utility they are just
      bytes. This worked fine under Python 2, because all of the hardcoded
      strings in difflib.py are ASCII, so could safely be combined with
      old-style u'' strings. But it stopped working in 3.x.
      
      The solution is to use surrogate escapes for a lossless
      bytes->str->bytes roundtrip. That means {unified,context}_diff() can
      continue to just handle strings without worrying about bytes. Callers
      who have to deal with bytes will need to change to using diff_bytes().
      
      Use case: Mercurial's test runner uses difflib to compare current hg
      output with known good output. But Mercurial's output is just bytes,
      since it can contain:
        * file contents (arbitrary unknown encoding)
        * filenames (arbitrary unknown encoding)
        * usernames and commit messages (usually UTF-8, but not guaranteed
          because old versions of Mercurial did not enforce it)
        * user messages (locale encoding)
      
      Since the output of any given hg command can include text in multiple
      encodings, it is hopeless to try to treat it as decodable Unicode
      text. It's just bytes, all the way down.
      
      This is an elaboration of a patch by Terry Reedy.
      4d9d2563
  7. 14 Mar, 2015 1 kayıt (commit)
  8. 04 Agu, 2014 3 kayıt (commit)
  9. 21 Haz, 2014 1 kayıt (commit)
  10. 20 Mar, 2014 1 kayıt (commit)
  11. 19 Mar, 2014 1 kayıt (commit)
  12. 16 Ock, 2014 1 kayıt (commit)
  13. 17 Agu, 2013 1 kayıt (commit)
  14. 19 Mar, 2013 1 kayıt (commit)
  15. 01 Eki, 2012 1 kayıt (commit)
  16. 10 Ara, 2011 1 kayıt (commit)
  17. 28 Eyl, 2011 1 kayıt (commit)
  18. 12 Nis, 2011 4 kayıt (commit)
  19. 11 Nis, 2011 3 kayıt (commit)
  20. 09 Nis, 2011 1 kayıt (commit)
  21. 16 Mar, 2011 2 kayıt (commit)
  22. 15 Ara, 2010 1 kayıt (commit)
  23. 03 Ara, 2010 2 kayıt (commit)
  24. 25 Kas, 2010 1 kayıt (commit)
  25. 11 Kas, 2010 1 kayıt (commit)
  26. 12 Nis, 2010 2 kayıt (commit)
    • R. David Murray's avatar
      Merged revisions 80004 via svnmerge from · b2416e54
      R. David Murray yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r80004 | r.david.murray | 2010-04-12 12:35:19 -0400 (Mon, 12 Apr 2010) | 13 lines
      
        Issue #7585: use tab between components in unified and context diff headers.
      
        Instead of spaces between the filename and date (or whatever the string
        is that follows the filename, if any) use tabs.  This is what the unix
        'diff' command does, for example, and difflib was intended to follow
        the 'standard' way of doing diffs.  This improves compatibility with
        patch tools.  The docs and examples are also changed to recommended that
        the date format used be the ISO 8601 format, which is what modern diff
        tools emit by default.
      
        Patch by Anatoly Techtonik.
      ........
      b2416e54
    • R. David Murray's avatar
      Issue #7585: use tab between components in unified and context diff headers. · 1a14d3d1
      R. David Murray yazdı
      Instead of spaces between the filename and date (or whatever the string
      is that follows the filename, if any) use tabs.  This is what the unix
      'diff' command does, for example, and difflib was intended to follow
      the 'standard' way of doing diffs.  This improves compatibility with
      patch tools.  The docs and examples are also changed to recommended that
      the date format used be the ISO 8601 format, which is what modern diff
      tools emit by default.
      
      Patch by Anatoly Techtonik.
      1a14d3d1
  27. 11 Mar, 2010 1 kayıt (commit)
  28. 23 Kas, 2009 3 kayıt (commit)