1. 15 Eyl, 2018 1 kayıt (commit)
  2. 31 Tem, 2018 1 kayıt (commit)
  3. 23 Tem, 2018 1 kayıt (commit)
  4. 13 Tem, 2018 1 kayıt (commit)
  5. 18 Nis, 2018 1 kayıt (commit)
  6. 17 Nis, 2018 2 kayıt (commit)
  7. 16 Nis, 2018 1 kayıt (commit)
  8. 18 Mar, 2018 1 kayıt (commit)
  9. 13 Mar, 2018 2 kayıt (commit)
  10. 30 Ock, 2018 2 kayıt (commit)
    • Benjamin Peterson's avatar
      1e17d4aa
    • Eric Appelt's avatar
      closes bpo-30117: fix lib2to3 ParserIdempotency test (GH-1242) · 14e976e0
      Eric Appelt yazdı
      Fix two (in my opinion) spurious failure conditions in the lib2to3.tests.test_parser.TestParserIdempotency test_parser test.
      
          Use the same encoding found in the initial file to write a temp file for a diff. This retains the BOM if the encoding was initially utf-8-sig.
      
          If the file cannot be parsed using the normal grammar, try again with no print statement which should succeed for valid files using future print_function
      
      For case (1), the driver was correctly handling a BOM in a utf-8 file, but then the test was not writing a comparison file using 'utf-8-sig' to diff against, so the BOM got removed. I don't think that is the fault of the parser, and lib2to3 will retain the BOM.
      
      For case (2), lib2to3 pre-detects the use of from __future__ import print_function or allows the user to force this interpretation with a -p flag, and then selects a different grammar with the print statement removed. That makes the test cases unfair to this test as the driver itself doesn't know which grammar to use. As a minimal fix, the test will try using a grammar with the print statement, and if that fails fall back on a grammar without it. A more thorough handling of the idempotency test would to be to parse all files using both grammars and ignore if one of the two failed but otherwise check both. I didn't think this was necessary but can change.
      14e976e0
  11. 29 Ara, 2017 2 kayıt (commit)
  12. 23 Ara, 2017 1 kayıt (commit)
  13. 22 Ara, 2017 1 kayıt (commit)
  14. 28 Kas, 2017 1 kayıt (commit)
  15. 16 Kas, 2017 1 kayıt (commit)
  16. 06 Eki, 2017 1 kayıt (commit)
  17. 05 Eki, 2017 1 kayıt (commit)
  18. 16 Haz, 2017 1 kayıt (commit)
  19. 22 May, 2017 2 kayıt (commit)
  20. 24 Nis, 2017 1 kayıt (commit)
  21. 13 Nis, 2017 1 kayıt (commit)
  22. 06 Nis, 2017 1 kayıt (commit)
  23. 05 Nis, 2017 1 kayıt (commit)
  24. 02 Nis, 2017 1 kayıt (commit)
    • Michael Selik's avatar
      bpo-29957: change LBYL key lookup to dict.setdefault (#938) · 11fa3c7c
      Michael Selik yazdı
      * change LBYL key lookup to dict.setdefault
      
      The ``results`` was constructed as a defaultdict and we could simply
      delete the check ``if key not in results``. However, I think it's safer
      to use dict.setdefault as I'm not sure whether the caller expects a
      regular dict or defaultdict.
      
      * add name to the acknowledgements file
      
      * use defaultdict to make the key-lookup cleaner
      11fa3c7c
  25. 27 Mar, 2017 1 kayıt (commit)
  26. 19 Mar, 2017 1 kayıt (commit)
  27. 16 Ara, 2016 1 kayıt (commit)
  28. 06 Ara, 2016 1 kayıt (commit)
  29. 10 Eki, 2016 1 kayıt (commit)
  30. 11 Eyl, 2016 1 kayıt (commit)
  31. 10 Eyl, 2016 3 kayıt (commit)
  32. 09 Eyl, 2016 2 kayıt (commit)