Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/18521#discussion_r125383823 --- Diff: python/pyspark/sql/tests.py --- @@ -30,6 +30,19 @@ import functools import time import datetime +import traceback + +if sys.version_info[:2] <= (2, 6): --- End diff -- I think it is a preference. I don't think either is particularly better. Just per documentation. it sounds `version_info` is preferred - https://docs.python.org/2/library/sys.html#sys.version > Do not extract version information out of it, rather, use `version_info` and the functions although we are not "extract"ing anyway ...
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org