From patchwork Sun Feb 11 14:04:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2119: py3: replace file() with open() in test-patch-offset.t From: phabricator X-Patchwork-Id: 27560 Message-Id: <986aee7684de951216de5e8474cdf8e7@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sun, 11 Feb 2018 14:04:46 +0000 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 To: pulkit, #hg-reviewers Cc: mercurial-devel 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'