aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorMatthew Farrellee <matt@redhat.com>2014-08-27 15:50:30 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-08-27 15:50:30 -0700
commit64d8ecbbe94c47236ff2d8c94d7401636ba6fca4 (patch)
treeebd3272a4ee0617083008261c2cc1674e83faa92 /dev
parent8712653f11b9730f6e7ef1c99c8c5850154abc56 (diff)
downloadspark-64d8ecbbe94c47236ff2d8c94d7401636ba6fca4.tar.gz
spark-64d8ecbbe94c47236ff2d8c94d7401636ba6fca4.tar.bz2
spark-64d8ecbbe94c47236ff2d8c94d7401636ba6fca4.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
Diffstat (limited to 'dev')
-rwxr-xr-xdev/create-release/generate-changelist.py4
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)