modernize icon indicating copy to clipboard operation
modernize copied to clipboard

Multi-iteratable map invocation gets modernized to different behavior

Open benbariteau opened this issue 6 years ago • 0 comments

When using the "map" fixer, if a the map call takes multiple iteratables, then it uses six.moves.map, which changes behavior if the iterables are of different length. Specifically, if one iteratable is longer than the others, it stops after the shortest iterable is exhausted instead of filling in Nones as python 2'd map builtin does. The more correct fix in this case is to use zip_longest.

benbariteau avatar Jun 21 '19 21:06 benbariteau