yuja added a comment. Can you elaborate why you think it wasn't a good idea to replace open()? IMHO, it's as hackish as replacing '' with b''. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2297 To: pulkit, #hg-reviewers Cc: yuja, mercurial-devel