You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mattf <gi...@git.apache.org> on 2014/08/26 19:01:08 UTC

[GitHub] spark pull request: Add line continuation for script to work w/ py...

GitHub user mattf opened a pull request:

    https://github.com/apache/spark/pull/2139

    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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/mattf/spark master-fix-generate-changelist.py-0

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/2139.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2139
    
----
commit 1380afa649f94ac44e19bd1cff87b0d8e9e888c0
Author: Matthew Farrellee <ma...@redhat.com>
Date:   2014-08-26T16:58:42Z

    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

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by mattf <gi...@git.apache.org>.
Github user mattf commented on the pull request:

    https://github.com/apache/spark/pull/2139#issuecomment-53485620
  
    i agree. updated.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/2139#issuecomment-53629229
  
    Jenkins, add to whitelist. Jenkins, test this please.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2139#discussion_r16739165
  
    --- Diff: dev/create-release/generate-changelist.py ---
    @@ -125,7 +125,7 @@ def cleanup(ask=True):
                 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
    +            if day < SPARK_REPO_CHANGE_DATE1 or \
    --- End diff --
    
    I generally prefer to use parentheses for this:
    
        if (really long condition that
          spans more than one line):
    
    But this is fine too. Since you're here, can you fix the indentation on the next line?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/2139#issuecomment-53651980
  
    I'm just gonna pull this in - not tested by jenkins anyways and I hit this when trying to create an RC :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/2139#issuecomment-53454019
  
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/2139


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request: Add line continuation for script to work w/ py...

Posted by davies <gi...@git.apache.org>.
Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/2139#issuecomment-53612011
  
    lgtm.
    
    Jenkins, test this please.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org