D2333: py3: make sure we open the files in bytes mode

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Mon Feb 19 07:00:39 EST 2018


yuja added inline comments.

INLINE COMMENTS

> posix.py:116
>              # switch file to link
> -            fp = open(f)
> +            fp = open(f, 'wb')
>              data = fp.read()

should be 'rb'

Fixed in flight.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2333

To: pulkit, #hg-reviewers, yuja, indygreg
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list