You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/07/28 02:28:47 UTC

[spark] branch branch-2.4 updated: [MINOR][PYTHON] Fix spacing in error message

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new c1421d0  [MINOR][PYTHON] Fix spacing in error message
c1421d0 is described below

commit c1421d0da16d841a1b3be3c18e77b12adb407ec1
Author: Shantanu <12...@users.noreply.github.com>
AuthorDate: Tue Jul 28 11:22:18 2020 +0900

    [MINOR][PYTHON] Fix spacing in error message
    
    ### What changes were proposed in this pull request?
    Fixes spacing in an error message
    
    ### Why are the changes needed?
    Makes error messages easier to read
    
    ### Does this PR introduce _any_ user-facing change?
    Yes, it changes the error message
    
    ### How was this patch tested?
    This patch doesn't affect any logic, so existing tests should cover it
    
    Closes #29264 from hauntsaninja/patch-1.
    
    Authored-by: Shantanu <12...@users.noreply.github.com>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit 77f2ca6cced1c723d1c2e6082a1534f6436c6d2a)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 python/pyspark/worker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/worker.py b/python/pyspark/worker.py
index 953b468..4b51046 100644
--- a/python/pyspark/worker.py
+++ b/python/pyspark/worker.py
@@ -261,7 +261,7 @@ def main(infile, outfile):
         version = utf8_deserializer.loads(infile)
         if version != "%d.%d" % sys.version_info[:2]:
             raise Exception(("Python in worker has different version %s than that in " +
-                             "driver %s, PySpark cannot run with different minor versions." +
+                             "driver %s, PySpark cannot run with different minor versions. " +
                              "Please check environment variables PYSPARK_PYTHON and " +
                              "PYSPARK_DRIVER_PYTHON are correctly set.") %
                             ("%d.%d" % sys.version_info[:2], version))


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