diff options
author | Matthew Farrellee <matt@redhat.com> | 2014-08-27 15:50:30 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-08-27 15:50:37 -0700 |
commit | d4cf7a068da099f0f07f04a834d7edf6b743ceb3 (patch) | |
tree | 39bd2f43b75cc71051ab65052c2aeeff44a0d59f | |
parent | 0b17c7d4f2176f0c0e8aaab95e034be54467ff30 (diff) | |
download | spark-d4cf7a068da099f0f07f04a834d7edf6b743ceb3.tar.gz spark-d4cf7a068da099f0f07f04a834d7edf6b743ceb3.tar.bz2 spark-d4cf7a068da099f0f07f04a834d7edf6b743ceb3.zip |
Add line continuation for script to work w/ py2.7.5
Error was -
$ SPARK_HOME=$PWD/dist ./dev/create-release/generate-changelist.py
File "./dev/create-release/generate-changelist.py", line 128
if day < SPARK_REPO_CHANGE_DATE1 or
^
SyntaxError: invalid syntax
Author: Matthew Farrellee <matt@redhat.com>
Closes #2139 from mattf/master-fix-generate-changelist.py-0 and squashes the following commits:
6b3a900 [Matthew Farrellee] Add line continuation for script to work w/ py2.7.5
(cherry picked from commit 64d8ecbbe94c47236ff2d8c94d7401636ba6fca4)
Signed-off-by: Patrick Wendell <pwendell@gmail.com>
-rwxr-xr-x | dev/create-release/generate-changelist.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/create-release/generate-changelist.py b/dev/create-release/generate-changelist.py index de1b5d4ae1..2e1a35a629 100755 --- a/dev/create-release/generate-changelist.py +++ b/dev/create-release/generate-changelist.py @@ -125,8 +125,8 @@ for h in hashes: pr_num = [line.split()[1].lstrip("#") for line in body_lines if "Closes #" in line][0] github_url = "github.com/apache/spark/pull/%s" % pr_num day = time.strptime(date.split()[0], "%Y-%m-%d") - if day < SPARK_REPO_CHANGE_DATE1 or - (day < SPARK_REPO_CHANGE_DATE2 and pr_num < SPARK_REPO_PR_NUM_THRESH): + if (day < SPARK_REPO_CHANGE_DATE1 or + (day < SPARK_REPO_CHANGE_DATE2 and pr_num < SPARK_REPO_PR_NUM_THRESH)): github_url = "github.com/apache/incubator-spark/pull/%s" % pr_num append_to_changelist(" %s" % subject) |