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\_\_'__ by
initializing the variable before setting it via a call to __exec()__. This is
the last remaining issue related to the work done in #20838
## How was this patch tested?
* $ __python2 -m flake8 . --count --select=E9,F82 --show-source
--statistics__
* $ __python3 -m flake8 . --count --select=E9,F82 --show-source
--statistics__
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cclauss/spark patch-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22214.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 #22214
----
commit a077542e67213c0add6093c0bf8c7568b6cb7b32
Author: cclauss <cclauss@...>
Date: 2018-08-24T09:36:07Z
[SPARK-23698][Python] Avoid 'undefined name' by defining __version__
Prevent linters from raising __undefined name '\_\_version\_\_'__ by
initializing the variable before setting it via a call to __exec()__. This is
the last remaining issue related to the work done in #20838
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]