Github user vanzin commented on a diff in the pull request: https://github.com/apache/spark/pull/14959#discussion_r79461443 --- Diff: python/pyspark/java_gateway.py --- @@ -50,13 +50,18 @@ def launch_gateway(): # proper classpath and settings from spark-env.sh on_windows = platform.system() == "Windows" script = "./bin/spark-submit.cmd" if on_windows else "./bin/spark-submit" + command = [os.path.join(SPARK_HOME, script)] + if conf and conf.getAll(): + conf_items = [['--conf', '%s=%s' % (k, v)] for k, v in conf.getAll()] --- End diff -- No point in using list comprehension if it requires more code... ``` for k, v in conf.getAll(): command += ['--conf', '%s=%s' % (k, v)] ```
--- 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