tirkarthi opened a new pull request #26835: [SPARK-30205] Import ABC from 
collections.abc for Python 3.9 compatibility
URL: https://github.com/apache/spark/pull/26835
 
 
   ### What changes were proposed in this pull request?
   
   Import ABC from collections.abc module to fix Python 3.9 compatibility. Ref 
: https://github.com/python/cpython/pull/10596
   
   ### Why are the changes needed?
   
   For Python 3.9 compatibility.
   
   ### Does this PR introduce any user-facing change?
   
   No, this doesn't introduce user-facing change
   
   ### How was this patch tested?
   
   This PR fixes the below deprecation warning.
   
   ```
   python -Werror python/pyspark/resultiterable.py
   Traceback (most recent call last):
     File "python/pyspark/resultiterable.py", line 23, in <module>
       class ResultIterable(collections.Iterable):
     File 
"/home/xtreak/anaconda3/envs/py38-venv/lib/python3.8/collections/__init__.py", 
line 49, in __getattr__
       warnings.warn("Using or importing the ABCs from 'collections' instead "
   DeprecationWarning: Using or importing the ABCs from 'collections' instead 
of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will 
stop working
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to