D2119: py3: replace file() with open() in test-patch-offset.t

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


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

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2119?vs=5382&id=5408

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

AFFECTED FILES
  tests/test-patch-offset.t

CHANGE DETAILS

diff --git a/tests/test-patch-offset.t b/tests/test-patch-offset.t
--- a/tests/test-patch-offset.t
+++ b/tests/test-patch-offset.t
@@ -5,7 +5,7 @@
   > path = sys.argv[1]
   > patterns = sys.argv[2:]
   > 
-  > fp = file(path, 'wb')
+  > fp = open(path, 'wb')
   > for pattern in patterns:
   >     count = int(pattern[0:-1])
   >     char = pattern[-1] + '\n'



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


More information about the Mercurial-devel mailing list