]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision/cloud: use python3 compatible syntax
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 7 Oct 2019 11:02:17 +0000 (13:02 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 7 Oct 2019 11:02:17 +0000 (13:02 +0200)
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
teuthology/provision/cloud/test/test_openstack.py
teuthology/provision/cloud/util.py

index bd51667667d464c74f66a49ad2cce35c82c8ff23..1a99011bfc23b8f73e32aef1e05e3d77b16ee9a8 100644 (file)
@@ -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)
index 71cc34d49fc2f2921fc3aa22cfaec26034429d4b..523dfb2eea810d72b1cb291df7a1be8e8bb46204 100644 (file)
@@ -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!