D2110: py3: replace file() with open() in test-clone.t

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Feb 11 09:04:15 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc02200b11c39: py3: replace file() with open() in test-clone.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2110?vs=5373&id=5399

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

AFFECTED FILES
  tests/test-clone.t

CHANGE DETAILS

diff --git a/tests/test-clone.t b/tests/test-clone.t
--- a/tests/test-clone.t
+++ b/tests/test-clone.t
@@ -10,7 +10,7 @@
 
 Create a non-inlined filelog:
 
-  $ $PYTHON -c 'file("data1", "wb").write("".join("%s\n" % x for x in range(10000)))'
+  $ $PYTHON -c 'open("data1", "wb").write(b"".join(b"%d\n" % x for x in range(10000)))'
   $ for j in 0 1 2 3 4 5 6 7 8 9; do
   >   cat data1 >> b
   >   hg commit -m test



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


More information about the Mercurial-devel mailing list