libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject libcloud git commit: Remove unneeded {0} to fix lint
Date Sun, 14 Jan 2018 15:53:01 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 14c59063a -> b877aedcf


Remove unneeded {0} to fix lint

One of them is not needed to fix lint, but it makes the example simpler.


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

Branch: refs/heads/trunk
Commit: b877aedcf756f438ade1f015a6999e5df2ab7e2a
Parents: 14c5906
Author: Quentin Pradet <quentinp@apache.org>
Authored: Sun Jan 14 11:34:10 2018 +0400
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Sun Jan 14 19:52:32 2018 +0400

----------------------------------------------------------------------
 docs/examples/dns/godaddy/pricing_domain.py            | 2 +-
 docs/examples/loadbalancer/softlayer/list_balancers.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b877aedc/docs/examples/dns/godaddy/pricing_domain.py
----------------------------------------------------------------------
diff --git a/docs/examples/dns/godaddy/pricing_domain.py b/docs/examples/dns/godaddy/pricing_domain.py
index ea3d461..6186b9d 100644
--- a/docs/examples/dns/godaddy/pricing_domain.py
+++ b/docs/examples/dns/godaddy/pricing_domain.py
@@ -6,6 +6,6 @@ driver = cls('customer_id', 'api_key', 'api_secret')
 
 check = driver.ex_check_availability("wazzlewobbleflooble.com")
 if check.available is True:
-    print("Domain is available for {0} {1}".format(check.price, check.currency))
+    print("Domain is available for {} {}".format(check.price, check.currency))
 else:
     print("Domain is taken")

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b877aedc/docs/examples/loadbalancer/softlayer/list_balancers.py
----------------------------------------------------------------------
diff --git a/docs/examples/loadbalancer/softlayer/list_balancers.py b/docs/examples/loadbalancer/softlayer/list_balancers.py
index 45083d6..0d981c5 100644
--- a/docs/examples/loadbalancer/softlayer/list_balancers.py
+++ b/docs/examples/loadbalancer/softlayer/list_balancers.py
@@ -10,4 +10,4 @@ driver = cls(key=USER_NAME, secret=SECRET_KEY)
 balancers = driver.list_balancers()
 
 for balancer in balancers:
-    print('{0} {1}'.format(balancer, balancer.extra))
+    print('{} {}'.format(balancer, balancer.extra))


Mime
View raw message