HyukjinKwon commented on a change in pull request #29110:
URL: https://github.com/apache/spark/pull/29110#discussion_r454674370



##########
File path: python/pyspark/cloudpickle.py
##########
@@ -1010,11 +1006,7 @@ def save_ellipsis(self, obj):
     def save_not_implemented(self, obj):
         self.save_reduce(_gen_not_implemented, ())
 
-    try:               # Python 2
-        dispatch[file] = save_file
-    except NameError:  # Python 3  # pragma: no branch
-        dispatch[io.TextIOWrapper] = save_file
-

Review comment:
       Ah, let's match cloudpickle with the released version. That's why I 
didnt touch this code.




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



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

Reply via email to