Index: lib2to3/tests/test_fixers.py =================================================================== --- lib2to3/tests/test_fixers.py (revision 73162) +++ lib2to3/tests/test_fixers.py (working copy) @@ -3324,6 +3324,10 @@ b = """x = buffer(y)""" a = """x = memoryview(y)""" self.check(b, a) + def test_slicing(self): + b = """x = buffer(y)[1:4]""" + a = """x = memoryview(y)[1:4]""" + self.check(b, a)