Repository: spark
Updated Branches:
  refs/heads/branch-1.1 0b17c7d4f -> d4cf7a068


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 <m...@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 <pwend...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d4cf7a06
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d4cf7a06
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d4cf7a06

Branch: refs/heads/branch-1.1
Commit: d4cf7a068da099f0f07f04a834d7edf6b743ceb3
Parents: 0b17c7d
Author: Matthew Farrellee <m...@redhat.com>
Authored: Wed Aug 27 15:50:30 2014 -0700
Committer: Patrick Wendell <pwend...@gmail.com>
Committed: Wed Aug 27 15:50:37 2014 -0700

----------------------------------------------------------------------
 dev/create-release/generate-changelist.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d4cf7a06/dev/create-release/generate-changelist.py
----------------------------------------------------------------------
diff --git a/dev/create-release/generate-changelist.py 
b/dev/create-release/generate-changelist.py
index de1b5d4..2e1a35a 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)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to