diff .editorconfig @ 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 1d6066336d7b
children c25efc468a49
line wrap: on
line diff