Mercurial > hg
diff tests/test-bisect.t @ 31219:f8e06821c118
store: slice over a bytestring to get characters instead of ascii values
On Python 2,
>>> a = b'abc'
>>> a[1]
'b'
Whereas on python 3,
>>> a = b'abc'
>>> a[1]
98
>>> a[1:2]
b'b'
This does not change behaviour on python 2.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 08 Mar 2017 00:40:15 +0530 |
parents | d83ca854fa21 |
children | 35a69efbf190 |