Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21fd900

Browse files
committed
backport fixes related to split
1 parent 4cb668a commit 21fd900

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/backport_pr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def backport_pr(branch, num, project='ipython/ipython'):
6060
files = get_pull_request_files(project, num, auth=True)
6161
patch_url = pr['patch_url']
6262
title = pr['title']
63-
description = pr['body']
63+
description = pr['body'] or ''
6464
fname = "PR%i.patch" % num
6565
if os.path.exists(fname):
6666
print("using patch from {fname}".format(**locals()))
@@ -92,6 +92,7 @@ def backport_pr(branch, num, project='ipython/ipython'):
9292
a,b = p.communicate(patch)
9393

9494
filenames = [ f['filename'] for f in files ]
95+
filenames = [ f.replace('jupyter_notebook', 'IPython/html') for f in filenames ]
9596

9697
check_call(['git', 'add'] + filenames)
9798

0 commit comments

Comments
 (0)