Mercurial > hg
comparison tests/test-gendoc.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 | 7a1ad08b9ff5 |
children | 75be14993fda |
comparison
equal
deleted
inserted
replaced
31218:4cc3797aa59c | 31219:f8e06821c118 |
---|