From 21fd900dd27446a23bd1df237dab5439a62f0362 2015-06-20 16:57:28 From: Min RK Date: 2015-06-20 16:57:28 Subject: [PATCH] backport fixes related to split --- diff --git a/tools/backport_pr.py b/tools/backport_pr.py index 21df4b3..e358100 100755 --- a/tools/backport_pr.py +++ b/tools/backport_pr.py @@ -60,7 +60,7 @@ def backport_pr(branch, num, project='ipython/ipython'): files = get_pull_request_files(project, num, auth=True) patch_url = pr['patch_url'] title = pr['title'] - description = pr['body'] + description = pr['body'] or '' fname = "PR%i.patch" % num if os.path.exists(fname): print("using patch from {fname}".format(**locals())) @@ -92,6 +92,7 @@ def backport_pr(branch, num, project='ipython/ipython'): a,b = p.communicate(patch) filenames = [ f['filename'] for f in files ] + filenames = [ f.replace('jupyter_notebook', 'IPython/html') for f in filenames ] check_call(['git', 'add'] + filenames)