You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/03/29 07:11:08 UTC
[GitHub] [spark] kianelbo commented on a change in pull request #35977: [SPARK-38660][PYTHON] PySpark DeprecationWarning: distutils Version classes are deprecated
kianelbo commented on a change in pull request #35977:
URL: https://github.com/apache/spark/pull/35977#discussion_r837128782
##########
File path: python/pyspark/ml/image.py
##########
@@ -28,7 +28,7 @@
from typing import Any, Dict, List, NoReturn, Optional, cast
import numpy as np
-from distutils.version import LooseVersion
+from packaging.version import Version
Review comment:
So copy and paste the Version module like cloudpickle, then?
And if you are on board with this, I want to suggest that we use the current LooseVersion implementation.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org