##// 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 fname = "PR%i.patch" % num
64 fname = "PR%i.patch" % num
65 if os.path.exists(fname):
65 if os.path.exists(fname):
66 print("using patch from {fname}".format(**locals()))
66 print("using patch from {fname}".format(**locals()))
67 with open(fname) as f:
67 with open(fname, 'rb') as f:
68 patch = f.read()
68 patch = f.read()
69 else:
69 else:
70 req = urlopen(patch_url)
70 req = urlopen(patch_url)
General Comments 0
You need to be logged in to leave comments. Login now