##// END OF EJS Templates
py3: replace file() with open() in test-import-git.t...
Pulkit Goyal -
r36042:32695e52 default
parent child Browse files
Show More
@@ -563,10 +563,10 b' Simulate a copy/paste turning LF into CR'
563 > Mc$`b*O5$Pw00T?_*Z=?k
563 > Mc$`b*O5$Pw00T?_*Z=?k
564 >
564 >
565 > EOF
565 > EOF
566 >>> fp = file('binary.diff', 'rb')
566 >>> fp = open('binary.diff', 'rb')
567 >>> data = fp.read()
567 >>> data = fp.read()
568 >>> fp.close()
568 >>> fp.close()
569 >>> file('binary.diff', 'wb').write(data.replace('\n', '\r\n'))
569 >>> open('binary.diff', 'wb').write(data.replace(b'\n', b'\r\n'))
570 $ rm binary2
570 $ rm binary2
571 $ hg import --no-commit binary.diff
571 $ hg import --no-commit binary.diff
572 applying binary.diff
572 applying binary.diff
General Comments 0
You need to be logged in to leave comments. Login now