contrib/plan9/hgrc.d/9mail.rc
author Gregory Szorc <gregory.szorc@gmail.com>
Fri, 25 Jan 2019 16:00:34 -0800
changeset 41406 b141b5243b37
parent 19617 ba89c3872801
permissions -rw-r--r--
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

# The 9mail to support patchbomb and other email wrappers
[email]
method = /bin/mercurial/9mail