Skip to content

Commit ab92913

Browse files
committed
style issues
1 parent 6a6d69d commit ab92913

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

examples/src/main/python/py_container_checks.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@
1818
import os
1919
import sys
2020

21-
"""
22-
These are various tests to test the Python container image.
23-
This file will be distributed via --py-files in the e2e tests.
24-
"""
21+
2522
def version_check(python_env, major_python_version):
23+
"""
24+
These are various tests to test the Python container image.
25+
This file will be distributed via --py-files in the e2e tests.
26+
"""
2627
env_version = os.environ.get('PYSPARK_PYTHON')
27-
print("Python runtime version check is: " + \
28+
print("Python runtime version check is: " +
2829
str(sys.version_info[0] == major_python_version))
2930

30-
print("Python environment version check is: " + \
31+
print("Python environment version check is: " +
3132
str(env_version == python_env))

examples/src/main/python/pyfiles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333

3434
from py_container_checks import version_check
3535
# Begin of Python container checks
36-
version_check(sys.argv[1], 2 if sys.argv[1]=="python" else 3)
36+
version_check(sys.argv[1], 2 if sys.argv[1] == "python" else 3)
3737

3838
spark.stop()

0 commit comments

Comments
 (0)