This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 7e0fbe0  [SPARK-31807][INFRA] Use python 3 style in release-build.sh
7e0fbe0 is described below

commit 7e0fbe03653b94e2dee29f5d472f56712552cb64
Author: William Hyun <[email protected]>
AuthorDate: Mon May 25 10:25:43 2020 +0900

    [SPARK-31807][INFRA] Use python 3 style in release-build.sh
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use the style that is compatible with both python 2 and 3.
    
    ### Why are the changes needed?
    
    This will help python 3 migration.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Manual.
    
    Closes #28632 from williamhyun/use_python3_style.
    
    Authored-by: William Hyun <[email protected]>
    Signed-off-by: HyukjinKwon <[email protected]>
    (cherry picked from commit 753636e86b1989a9b43ec691de5136a70d11f323)
    Signed-off-by: HyukjinKwon <[email protected]>
    (cherry picked from commit 40e5de54e6109762d3ee85197da4fa1a8b20e13b)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 dev/create-release/release-build.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/create-release/release-build.sh 
b/dev/create-release/release-build.sh
index db9bd5e..bcfe119 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -388,7 +388,7 @@ if [[ "$1" == "publish-snapshot" ]]; then
   echo "</server></servers></settings>" >> $tmp_settings
 
   # Generate random point for Zinc
-  export ZINC_PORT=$(python -S -c "import random; print 
random.randrange(3030,4030)")
+  export ZINC_PORT=$(python -S -c "import random; 
print(random.randrange(3030,4030))")
 
   $MVN -DzincPort=$ZINC_PORT --settings $tmp_settings -DskipTests 
$SCALA_2_11_PROFILES $PUBLISH_PROFILES deploy
   #./dev/change-scala-version.sh 2.12
@@ -423,7 +423,7 @@ if [[ "$1" == "publish-release" ]]; then
   tmp_repo=$(mktemp -d spark-repo-XXXXX)
 
   # Generate random point for Zinc
-  export ZINC_PORT=$(python -S -c "import random; print 
random.randrange(3030,4030)")
+  export ZINC_PORT=$(python -S -c "import random; 
print(random.randrange(3030,4030))")
 
   $MVN -DzincPort=$ZINC_PORT -Dmaven.repo.local=$tmp_repo -DskipTests 
$SCALA_2_11_PROFILES $PUBLISH_PROFILES clean install
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to