Skip to content

Conversation

@anntzer
Copy link
Contributor

@anntzer anntzer commented Aug 28, 2018

Mostly so that Matplotlib doesn't depend transitively on six either :)
(doesn't break Py2 compat)

  • six.iteritems() -> dict.items(): OK even on Py2, we directly consume
    the iterator/list with reduce anyways, and I doubt that the perfomance
    change is measurable.
  • six.moves.zip() could have been replaced with builtin zip() on both
    Py2 and Py3 because we always exhaust the iterator immediately
    anyways, but it also acts as a lookup key in Cycler.__len__ so I
    decided to just play it safe and have a conditional import (on Py2,
    six.moves.zip is an alias for itertools.zip).

Also added new .pytest_cache directory to gitignore.

Mostly so that Matplotlib doesn't depend *transitively* on six either :)

- six.iteritems() -> dict.items(): OK even on Py2, we directly consume
  the iterator/list with reduce anyways, and I doubt that the perfomance
  change is measurable.
- six.moves.zip() could have been replaced with builtin zip() on both
  Py2 and Py3 because we always exhaust the iterator immediately
  anyways, but it also acts as a lookup key in `Cycler.__len__` so I
  decided to just play it safe and have a conditional import (on Py2,
  six.moves.zip is an alias for itertools.zip).

Also added new .pytest_cache directory to gitignore.
@codecov-io
Copy link

codecov-io commented Aug 28, 2018

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #49   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines         177    179    +2     
  Branches       50     51    +1     
=====================================
+ Hits          177    179    +2
Impacted Files Coverage Δ
cycler.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffa3377...5fce18a. Read the comment docs.

@tacaswell tacaswell added this to the v1.0 milestone Aug 28, 2018
@tacaswell tacaswell merged commit 16010dd into matplotlib:master Aug 28, 2018
@anntzer anntzer deleted the minus-six branch August 28, 2018 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants