comparison contrib/mq.el @ 41384:b141b5243b37

util: cast memoryview to bytes Python 3 uses readinto() instead of read() in places. And taking a slice of the buffer passed to readinto() will produce a memoryview. _writedata() then gets confused when testing for `b'\n' in data` because memoryview is an iterable over ints instead of 1 character bytes. We work around by casting a memoryview to bytes. Differential Revision: https://phab.mercurial-scm.org/D5704
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 25 Jan 2019 16:00:34 -0800
parents 7de7630053cb
children
comparison
equal deleted inserted replaced
41383:0cfbe78fc13e 41384:b141b5243b37