##// END OF EJS Templates
[py3] backport_pr: read patch as bytes...
Min RK -
Show More
@@ -64,7 +64,7 b" def backport_pr(branch, num, project='ipython/ipython'):"
64 64 fname = "PR%i.patch" % num
65 65 if os.path.exists(fname):
66 66 print("using patch from {fname}".format(**locals()))
67 with open(fname) as f:
67 with open(fname, 'rb') as f:
68 68 patch = f.read()
69 69 else:
70 70 req = urlopen(patch_url)
General Comments 0
You need to be logged in to leave comments. Login now