[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-14 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 @holdenk Can you please do me a big favor and create a separate PR that makes sure that we are doing at least __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-14 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 Removed the escaped backticks. @HyukjinKwon Undefined names (F821) is a flake8 error, not a PyCodeStyle error. That means that PyCodeStyle on its own (this PR) is unable to detect

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-13 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 OK... Removed backticks and we are once again testing ./dev/run-tests-jenkins.py --- - To unsubscribe, e-mail: reviews

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-13 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 OK... __# noqa__ works within the flake8 wrapper around PyFlakes but does not work when PyFlakes is called outside of flake8. Also added r"comment" as you

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-12 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 @srowen Following the merge of #22400 there are just three W605s at the bottom of https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/96020/console Should we __# noqa__ those lines

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-12 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 Let's wait until #22400 is merged before proceeding with this PR. --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark pull request #22400: [SPARK-25238][PYTHON] lint-python: Fix W605 warni...

2018-09-12 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/22400#discussion_r216926889 --- Diff: dev/create-release/generate-contributors.py --- @@ -88,7 +88,7 @@ def print_indented(_list): def is_release(commit_title

[GitHub] spark issue #22231: [SPARK-25238][PYTHON] lint-python: Upgrade pycodestyle t...

2018-09-10 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 @srowen Could you please provide some test cases in Python 2 and Python 3 to prove that the changes that you propose will be properly interpreted without side effects in both

[GitHub] spark pull request #22266: [SPARK-25270] lint-python: Add flake8 to find syn...

2018-08-30 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/22266#discussion_r214201610 --- Diff: dev/lint-python --- @@ -82,6 +82,25 @@ else rm "$PYCODESTYLE_REPORT_PATH" fi +# stop the build if there are Pyt

[GitHub] spark pull request #22266: [SPARK-25270] lint-python: Add flake8 to find syn...

2018-08-30 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/22266#discussion_r214196909 --- Diff: dev/lint-python --- @@ -82,6 +82,26 @@ else rm "$PYCODESTYLE_REPORT_PATH" fi +python -m pip install flake8

[GitHub] spark issue #22266: [SPARK-25270] lint-python: Add flake8 to find syntax err...

2018-08-29 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22266 @HyukjinKwon Done. @viirya Done. --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands

[GitHub] spark issue #22266: lint-python: Add flake8 to find syntax errors and undefi...

2018-08-29 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22266 These tests should fail until #22265 or similar is merged. --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

[GitHub] spark pull request #22266: lint-python: Add flake8 tests to find Python synt...

2018-08-29 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/22266 lint-python: Add flake8 tests to find Python syntax errors and undefi… …ned names Add [flake8](http://flake8.pycqa.org) tests to find Python syntax errors and undefined names

[GitHub] spark pull request #22265: Undefined name: from pyspark.util import _excepti...

2018-08-29 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/22265 Undefined name: from pyspark.util import _exception_message [flake8](http://flake8.pycqa.org) testing of https://github.com/apache/spark on Python 3.7.0 $ __flake8 . --count --select=E901

[GitHub] spark issue #22231: [25238][PYTHON] lint-python: Upgrade pycodestyle to v2.4...

2018-08-25 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/22231 https://issues.apache.org/jira/browse/SPARK-25238 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

[GitHub] spark pull request #22231: [MINOR][PYTHON] lint-python: Upgrade pycodestyle ...

2018-08-25 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/22231 [MINOR][PYTHON] lint-python: Upgrade pycodestyle to v2.4.0 See https://pycodestyle.readthedocs.io/en/latest/developer.html#changes for changes made in this release. ## What changes were

[GitHub] spark pull request #22214: [SPARK-23698][Python] Avoid 'undefined name' by d...

2018-08-24 Thread cclauss
Github user cclauss closed the pull request at: https://github.com/apache/spark/pull/22214 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org

[GitHub] spark pull request #22214: [SPARK-23698][Python] Avoid 'undefined name' by d...

2018-08-24 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/22214 [SPARK-23698][Python] Avoid 'undefined name' by defining __version__ ## What changes were proposed in this pull request? Prevent linters from raising __undefined name '\_\_version

[GitHub] spark pull request #22128: Add test_slice() to streaming BasicOperations

2018-08-21 Thread cclauss
Github user cclauss closed the pull request at: https://github.com/apache/spark/pull/22128 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-20 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 Thanks massively for this. I doubt that I _ever_ would have gotten to that on my own. This is a test so my proposal would be that _you create a separate PR_ so that we are all assured

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-18 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 This is not working at all... I am wasting way too much time. 5+ months and 80+ comments for 12 lines of code is I do not have the skills to solve the following undefined name 'long

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-17 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 It was reverted because [__slice_test()__](#22128) was causing the build to fail. --- - To unsubscribe, e-mail: reviews

[GitHub] spark pull request #22128: Add test_slice() to streaming BasicOperations

2018-08-16 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/22128 Add test_slice() to streaming BasicOperations As suggested in https://github.com/apache/spark/pull/20838#pullrequestreview-139118618 ## What changes were proposed in this pull request

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-10 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 jenkins, retest this please --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-10 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 @HyukjinKwon Your advise on next steps? --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-04 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 jenkins, retest this please --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-04 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 May I please break this PR into pieces as I did in #21959 and #21960 so that we can isolate why tests keep failing? These issues were all discovered using the same (flake8 F821) technique

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-02 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 Several are fixed it this PR. Some others are not fixable without resorting to using __#noqa__. --- - To unsubscribe, e-mail

[GitHub] spark pull request #21960: [SPARK-23698] Remove unused definitions of long a...

2018-08-02 Thread cclauss
Github user cclauss closed the pull request at: https://github.com/apache/spark/pull/21960 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org

[GitHub] spark pull request #21959: [SPARK-23698] Define xrange() for Python 3 in dum...

2018-08-02 Thread cclauss
Github user cclauss closed the pull request at: https://github.com/apache/spark/pull/21959 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org

[GitHub] spark pull request #21960: [SPARK-23698] Remove unused definitions of long a...

2018-08-01 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/21960 [SPARK-23698] Remove unused definitions of long and unicode __intlike__ and __unicode__ were defined but not used in the existing code. __basestring()__was removed in Python 3 in favor of __str

[GitHub] spark issue #21959: [SPARK-23698] Define xrange() for Python 3 in dumpdata_s...

2018-08-01 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/21959 As it says in the commit message, these changes are already in #20838 but that PR has been open for 139 days and has 50+ comments. The only way that I seem to make progress is by opening separate

[GitHub] spark pull request #21959: [SPARK-23698] Define xrange() for Python 3 in dum...

2018-08-01 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/21959 [SPARK-23698] Define xrange() for Python 3 in dumpdata_script.py __xrange()__ was removed in Python 3 in favor of __range()__. This simple change removes three Undefined Names was originally

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-08-01 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 @holdenk Did we miss the window? I still count 10 undefined names in this repo. --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-27 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r205933934 --- Diff: python/pyspark/streaming/tests.py --- @@ -206,6 +207,22 @@ def func(dstream): expected = [[len(x)] for x in input] self

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-27 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r205870627 --- Diff: dev/create-release/releaseutils.py --- @@ -149,7 +152,11 @@ def get_commits(tag): if not is_valid_author(author

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-20 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r204094593 --- Diff: dev/create-release/releaseutils.py --- @@ -149,7 +152,11 @@ def get_commits(tag): if not is_valid_author(author

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-17 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 Three (different) failures in a row. Should I break this PR into separate PRs? --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark issue #21702: [SPARK-23698] Remove raw_input() from Python 2

2018-07-03 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/21702 Tested data entry... In __./dev/merge_spark_pr.py__ just after __clean_up()__, I added the lines: ``` while not continue_maybe('y to conntinue'): print('loop') sys.exit

[GitHub] spark pull request #21702: [SPARK-23698] Remove raw_input() from Python 2

2018-07-03 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/21702#discussion_r199723478 --- Diff: dev/create-release/releaseutils.py --- @@ -49,13 +49,16 @@ print("Install using 'sudo pip install unidecode'") s

[GitHub] spark pull request #21702: [SPARK-23698] Remove raw_input() from Python 2

2018-07-03 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/21702 [SPARK-23698] Remove raw_input() from Python 2 Signed-off-by: cclauss ## What changes were proposed in this pull request? Humans will be able to enter text in Python 3 prompts

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-03 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r199701965 --- Diff: dev/merge_spark_pr.py --- @@ -39,6 +39,9 @@ except ImportError: JIRA_IMPORTED = False +if sys.version_info[0] >

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-03 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r199701953 --- Diff: python/pyspark/sql/conf.py --- @@ -59,7 +62,7 @@ def unset(self, key): def _checkType(self, obj, identifier

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-07-03 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r199702001 --- Diff: dev/create-release/releaseutils.py --- @@ -49,6 +49,9 @@ print("Install using 'sudo pip install unidecode'") s

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-04-12 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r181192109 --- Diff: python/pyspark/cloudpickle.py --- @@ -802,9 +802,8 @@ def save_not_implemented(self, obj): self.save_reduce(_gen_not_implemented

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-04-12 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 Other issues / suggestions? --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-03-28 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 The cloudpickle change is now merged upstream. I would like to avoid @BryanCutler suggestion above because Unicode is really touchy in Python 2 and a lot can change based

[GitHub] spark issue #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-03-23 Thread cclauss
Github user cclauss commented on the issue: https://github.com/apache/spark/pull/20838 @HyukjinKwon Was there something more to do on this one? --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-03-15 Thread cclauss
Github user cclauss commented on a diff in the pull request: https://github.com/apache/spark/pull/20838#discussion_r175000559 --- Diff: dev/create-release/releaseutils.py --- @@ -49,6 +49,11 @@ print("Install using 'sudo pip install unidecode'") s

[GitHub] spark pull request #20838: [SPARK-23698] Resolve undefined names in Python 3

2018-03-15 Thread cclauss
GitHub user cclauss opened a pull request: https://github.com/apache/spark/pull/20838 [SPARK-23698] Resolve undefined names in Python 3 ## What changes were proposed in this pull request? Fix issues arising from the fact that __file__, __long__, __raw_input