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:49 GMT
Repository: storm
Updated Branches:
  refs/heads/1.0.x-branch 5ef9534e5 -> 42dc3ece0


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/42dc3ece
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/42dc3ece
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/42dc3ece

Branch: refs/heads/1.0.x-branch
Commit: 42dc3ece0ca0bcdcb7dd0b1019278ff1e5d1a966
Parents: 5ef9534
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:27 2016 +0900

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


http://git-wip-us.apache.org/repos/asf/storm/blob/42dc3ece/bin/storm.py
----------------------------------------------------------------------
diff --git a/bin/storm.py b/bin/storm.py
index 74e0c2d..0afe23a 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