dongjoon-hyun commented on code in PR #41024:
URL: https://github.com/apache/spark/pull/41024#discussion_r1183228759


##########
python/pyspark/cloudpickle/compat.py:
##########
@@ -1,13 +1,5 @@
 import sys
 
 
-if sys.version_info < (3, 8):
-    try:
-        import pickle5 as pickle  # noqa: F401
-        from pickle5 import Pickler  # noqa: F401
-    except ImportError:
-        import pickle  # noqa: F401
-        from pickle import _Pickler as Pickler  # noqa: F401
-else:
-    import pickle  # noqa: F401
-    from _pickle import Pickler  # noqa: F401

Review Comment:
   From PyPy3.8, `_pickle` is removed.
   - https://github.com/cloudpipe/cloudpickle/issues/458



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to