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

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


The following commit(s) were added to refs/heads/branch-4.3 by this push:
     new 21021bba4ee0 [SPARK-57787][4.3][CONNECT][PYTHON][FOLLOWUP] Fix syntax 
error in `local_server.py`
21021bba4ee0 is described below

commit 21021bba4ee049a685e818c95c0e2204ba1139d6
Author: Kousuke Saruta <[email protected]>
AuthorDate: Tue Aug 11 21:00:51 2026 -0700

    [SPARK-57787][4.3][CONNECT][PYTHON][FOLLOWUP] Fix syntax error in 
`local_server.py`
    
    ### What changes were proposed in this pull request?
    This PR fixes a typo `e1xcept` -> `except` in 
`python/pyspark/sql/connect/local_server.py`
    
    ### Why are the changes needed?
    The cherry-pick of #57854 to `branch-4.3` introduced a typo during conflict 
resolution, causing a `SyntaxError` that breaks `dev/lint-python` (Python 
compilation check).
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    GA.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    Kiro CLI / Claude
    
    Closes #57942 from sarutak/fix-typo-local-server.
    
    Authored-by: Kousuke Saruta <[email protected]>
    Signed-off-by: Tian Gao <[email protected]>
---
 python/pyspark/sql/connect/local_server.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/connect/local_server.py 
b/python/pyspark/sql/connect/local_server.py
index aed82f0c87d9..7fb375e1fe56 100644
--- a/python/pyspark/sql/connect/local_server.py
+++ b/python/pyspark/sql/connect/local_server.py
@@ -88,7 +88,7 @@ def _is_local_connect_server(pid: int) -> Optional[bool]:
             text=True,
             timeout=5,
         )
-    e1xcept (OSError, subprocess.SubprocessError):
+    except (OSError, subprocess.SubprocessError):
         return None
     return result.returncode == 0 and _SERVER_CLASS in result.stdout
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to