From: Kyr Shatskyy Date: Mon, 7 Oct 2019 11:02:17 +0000 (+0200) Subject: provision/cloud: use python3 compatible syntax X-Git-Tag: 1.1.0~223^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8c23fdb508b6bdc885fcd54e5b61bcef4223e70b;p=teuthology.git provision/cloud: use python3 compatible syntax Signed-off-by: Kyr Shatskyy --- diff --git a/teuthology/provision/cloud/test/test_openstack.py b/teuthology/provision/cloud/test/test_openstack.py index bd5166766..1a99011bf 100644 --- a/teuthology/provision/cloud/test/test_openstack.py +++ b/teuthology/provision/cloud/test/test_openstack.py @@ -217,7 +217,7 @@ class TestOpenStackCustomProvisioner(TestOpenStackBase): if test_conf: yaml_file = os.path.dirname(__file__) + '/' + test_conf - print ("Reading conf: %s" % yaml_file) + print("Reading conf: %s" % yaml_file) with open(yaml_file) as f: teuth_conf=yaml.safe_load(f) print(teuth_conf) diff --git a/teuthology/provision/cloud/util.py b/teuthology/provision/cloud/util.py index 71cc34d49..523dfb2ee 100644 --- a/teuthology/provision/cloud/util.py +++ b/teuthology/provision/cloud/util.py @@ -43,7 +43,7 @@ def selective_update(a, b, func): >>> a = dict(x=0, y=1, z=3) >>> b = dict(x=1, y=2, z=0) >>> selective_update(a, b, lambda foo, bar: foo > bar) - >>> print a + >>> print(a) {'x': 1, 'y': 2, 'z': 3} :param a: A dict. This is modified in-place!