diff hgext/extdiff.py @ 31778:ac69675fff1c

ui: use bytes IO and convert EOL manually in ui.editor() Text IO sucks on Python 3 as it must be a unicode stream. We could introduce a wrapper that converts unicode back to bytes, but it wouldn't be simple to handle offsets transparently from/to underlying IOBase API. Fortunately, we don't need to process huge text files, so let's stick to bytes IO and convert EOL in memory.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 29 Mar 2017 21:43:38 +0900
parents 53865692a354
children affd753ddaf1
line wrap: on
line diff