2to3: Skip buffer fixer. #3226

Merged
merged 1 commit into from Apr 11, 2013

Projects

None yet

1 participant

@charris
Member
charris commented Apr 11, 2013

The buffer object is replaced by memoryview in Python >= 3. The memoryview object has also been backported to Python 2.7. However, the only use of buffer / memoryview is in numpy/core/tests/test_unicode.py
and there it is already version dependent: memoryview is used if the
Python version is >= 3 and buffer is used otherwise.

Closes #3043.

@charris charris 2to3: Skip buffer fixer.
The buffer object is replaced by memoryview in Python >= 3. The memory
view object has also been backported to Python 2.7. However, the only
use of `buffer1/1memoryview1 is in `numpy/core/tests/test_unicode.py`
and there it is already version dependent: `memoryview` is used if the
Python version is >= 3 and `buffer` is used otherwise.

Closes #3043.
0cbe590
@charris charris merged commit b7053e8 into numpy:master Apr 11, 2013

1 check passed

default The Travis build passed
Details
@charris charris deleted the charris:2to3-apply-buffer-fixer branch Apr 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment