[Checkins] [zopefoundation/z3c.batching] d701d2: Proper Python 3 support

GitHub noreply at github.com
Sun Jun 5 10:46:03 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/z3c.batching
  Commit: d701d22e7af7b841f049c62e0651bacc455d75a2
      https://github.com/zopefoundation/z3c.batching/commit/d701d22e7af7b841f049c62e0651bacc455d75a2
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-05 (Sun, 05 Jun 2016)

  Changed paths:
    A .coveragerc
    M .gitignore
    M .travis.yml
    M CHANGES.txt
    M setup.py
    M src/z3c/batching/README.txt
    M src/z3c/batching/batch.py
    M src/z3c/batching/subset.py
    M tox.ini

  Log Message:
  -----------
  Proper Python 3 support

- Make tox and Travis CI actually run the tests

- Make the tests actually pass on Python 3

- Make the code actually support Python 3 like setup.py claims it
  already does

- Tell tox and travis and setup.py about Pythons 3.4 and 3.5

- Add tox -e coverage2 and tox -e coverage3


  Commit: de2c083105060951b3bb51bff39a07f5666280bd
      https://github.com/zopefoundation/z3c.batching/commit/de2c083105060951b3bb51bff39a07f5666280bd
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2016-06-05 (Sun, 05 Jun 2016)

  Changed paths:
    M src/z3c/batching/README.txt
    M src/z3c/batching/batch.py

  Log Message:
  -----------
  Drop useless __nonzero__

Python uses (x.__len__() != 0) to implement bool(x) when x doesn't
define a __nonzero__ (__bool__ on Pyton 3).

Add tests to make sure this works.


Compare: https://github.com/zopefoundation/z3c.batching/compare/257085b80b6d...de2c08310506


More information about the checkins mailing list