GitHub user srowen opened a pull request:

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

    [SPARK-25238][PYTHON] lint-python: Fix W605 warnings for pycodestyle 2.4

    (This change is a subset of the changes needed for the JIRA; see 
https://github.com/apache/spark/pull/22231)
    
    ## What changes were proposed in this pull request?
    
    Use raw strings and simpler regex syntax consistently in Python, which also 
avoids warnings from pycodestyle about accidentally relying Python's 
non-escaping of non-reserved chars in normal strings. Also, fix a few long 
lines.
    
    ## How was this patch tested?
    
    Existing tests, and some manual double-checking of the behavior of regexes 
in Python 2/3 to be sure.

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

    $ git pull https://github.com/srowen/spark SPARK-25238.2

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

    https://github.com/apache/spark/pull/22400.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 #22400
    
----
commit fc4b49ed784581a85f5742a701046a1ca8e4d32e
Author: Sean Owen <sean.owen@...>
Date:   2018-09-12T03:19:55Z

    Use raw strings and simpler regex syntax consistently in Python, which also 
avoids warnings from pycodestyle about accidentally relying Python's 
non-escaping of non-reserved chars in normal strings

----


---

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

Reply via email to