storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kabh...@apache.org
Subject storm git commit: Python 3 print statement error
Date Fri, 08 Jul 2016 08:34:44 GMT
Repository: storm
Updated Branches:
  refs/heads/1.x-branch f8e57535d -> bc09e3f77


Python 3 print statement error

* closes #1452
* also Ensure Python<3.0 compatibility
  * https://docs.python.org/2/library/functions.html#print


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/bc09e3f7
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/bc09e3f7
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/bc09e3f7

Branch: refs/heads/1.x-branch
Commit: bc09e3f7737bd7e88a69a1398c68f665b95d656d
Parents: f8e5753
Author: Pavel Grochal <darkless69@gmail.com>
Authored: Tue May 31 12:00:49 2016 +0200
Committer: Jungtaek Lim <kabhwan@gmail.com>
Committed: Fri Jul 8 17:34:20 2016 +0900

----------------------------------------------------------------------
 bin/storm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/bc09e3f7/bin/storm.py
----------------------------------------------------------------------
diff --git a/bin/storm.py b/bin/storm.py
index 2a8fa5e..354daca 100755
--- a/bin/storm.py
+++ b/bin/storm.py
@@ -15,6 +15,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+from __future__ import print_function
 
 import os
 import random
@@ -91,7 +92,7 @@ JAR_JVM_OPTS = shlex.split(os.getenv('STORM_JAR_JVM_OPTS', ''))
 JAVA_HOME = os.getenv('JAVA_HOME', None)
 JAVA_CMD = 'java' if not JAVA_HOME else os.path.join(JAVA_HOME, 'bin', 'java')
 if JAVA_HOME and not os.path.exists(JAVA_CMD):
-    print "ERROR:  JAVA_HOME is invalid.  Could not find bin/java at %s." % JAVA_HOME
+    print("ERROR:  JAVA_HOME is invalid.  Could not find bin/java at %s." % JAVA_HOME)
     sys.exit(1)
 STORM_EXT_CLASSPATH = os.getenv('STORM_EXT_CLASSPATH', None)
 STORM_EXT_CLASSPATH_DAEMON = os.getenv('STORM_EXT_CLASSPATH_DAEMON', None)


Mime
View raw message