--- a/tests/test-impexp-branch.t Sat Feb 24 16:06:21 2018 +0530
+++ b/tests/test-impexp-branch.t Sat Feb 24 16:07:45 2018 +0530
@@ -74,9 +74,9 @@
$ hg strip --no-backup .
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
>>> import re
- >>> p = file('../r1.patch', 'rb').read()
+ >>> p = open('../r1.patch', 'rb').read()
>>> p = re.sub(r'Parent\s+', 'Parent ', p)
- >>> file('../r1-ws.patch', 'wb').write(p)
+ >>> open('../r1-ws.patch', 'wb').write(p)
$ hg import --exact ../r1-ws.patch
applying ../r1-ws.patch