IMPALA-4742: Change "{}".format() to "{0}".format() for Py 2.6
>From the Python docs:
"Changed in version 2.7: The positional argument specifiers can be
omitted, so '{} {}' is equivalent to '{0} {1}'."
http://gerrit.cloudera.org:8080/5401 used the newer form,
"{}".format(). This change uses the older backwards-compatible
compatible form.
Change-Id: If78b9b4061ca191932ac5b0b14e0ee8951a9d4e8
Reviewed-on: http://gerrit.cloudera.org:8080/5641
Reviewed-by: Michael Brown <[email protected]>
Reviewed-by: Tim Armstrong <[email protected]>
Tested-by: Impala Public Jenkins
Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/0ee6d19d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/0ee6d19d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/0ee6d19d
Branch: refs/heads/master
Commit: 0ee6d19d596da1520733b6d1b064b26c002eb876
Parents: 11dc6bb
Author: Jim Apple <[email protected]>
Authored: Sun Jan 8 11:14:04 2017 -0800
Committer: Impala Public Jenkins <[email protected]>
Committed: Sun Jan 8 23:52:01 2017 +0000
----------------------------------------------------------------------
tests/run-tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/0ee6d19d/tests/run-tests.py
----------------------------------------------------------------------
diff --git a/tests/run-tests.py b/tests/run-tests.py
index fc23338..aed1234 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -157,7 +157,7 @@ def print_metrics(substring):
for impalad in ImpalaCluster().impalads:
print ">" * 80
port = impalad._get_webserver_port()
- print "connections metrics for impalad at port {}:".format(port)
+ print "connections metrics for impalad at port {0}:".format(port)
debug_info = json.loads(ImpaladService(
impalad.hostname,
webserver_port=port)