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 2019/12/11 03:40:32 UTC
[GitHub] [spark] tirkarthi commented on a change in pull request #26835:
[SPARK-30205][PYSPARK] Import ABCs from collections.abc to remove
deprecation warnings
tirkarthi commented on a change in pull request #26835: [SPARK-30205][PYSPARK] Import ABCs from collections.abc to remove deprecation warnings
URL: https://github.com/apache/spark/pull/26835#discussion_r356390404
##########
File path: python/pyspark/resultiterable.py
##########
@@ -15,12 +15,16 @@
# limitations under the License.
#
-import collections
+try:
+ from collections.abc import Iterable
+except ImportError:
+ from collections import Iterable
Review comment:
Sorry, I was not aware of it.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org