D2507: py3: make sure we open the file in bytes mode
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Mar 1 09:35:56 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe21713991260: py3: make sure we open the file in bytes mode (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2507?vs=6207&id=6239
REVISION DETAIL
https://phab.mercurial-scm.org/D2507
AFFECTED FILES
tests/test-revlog-ancestry.py
CHANGE DETAILS
diff --git a/tests/test-revlog-ancestry.py b/tests/test-revlog-ancestry.py
--- a/tests/test-revlog-ancestry.py
+++ b/tests/test-revlog-ancestry.py
@@ -15,7 +15,7 @@
repo.commit(text=text, date=b"%d 0" % time)
def addcommit(name, time):
- f = open(name, 'w')
+ f = open(name, 'wb')
f.write(b'%s\n' % name)
f.close()
repo[None].add([name])
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list