Fix pep8 violations in the doc examples.

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

Branch: refs/heads/trunk
Commit: bb9116940ffba48a1a930e7c3203bd2d8b8bbb6e
Parents: 3eab0e5
Author: Tomaz Muraus <[email protected]>
Authored: Thu Sep 26 12:55:49 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Thu Sep 26 12:55:49 2013 +0200

----------------------------------------------------------------------
 docs/examples/compute/pricing.py | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/bb911694/docs/examples/compute/pricing.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/pricing.py b/docs/examples/compute/pricing.py
index 65b4933..3a9e886 100644
--- a/docs/examples/compute/pricing.py
+++ b/docs/examples/compute/pricing.py
@@ -8,12 +8,11 @@ cls = get_driver(Provider.EC2)
 driver = cls(EC2_ACCESS_ID, EC2_SECRET_KEY)
 sizes = driver.list_sizes()
 
->>> sizes[:5]
-[<NodeSize: id=t1.micro, name=Micro Instance, ram=613 disk=15 bandwidth=None 
price=0.02 driver=Amazon EC2 ...>,
- <NodeSize: id=m1.small, name=Small Instance, ram=1740 disk=160 bandwidth=None 
price=0.065 driver=Amazon EC2 ...>,
- <NodeSize: id=m1.medium, name=Medium Instance, ram=3700 disk=410 
bandwidth=None price=0.13 driver=Amazon EC2 ...>,
- <NodeSize: id=m1.large, name=Large Instance, ram=7680 disk=850 bandwidth=None 
price=0.26 driver=Amazon EC2 ...>,
- <NodeSize: id=m1.xlarge, name=Extra Large Instance, ram=15360 disk=1690 
bandwidth=None price=0.52 driver=Amazon EC2 ...>]
->>> sizes[0].price
-0.02
->>>
+# >>> sizes[:2]
+# [<NodeSize: id=t1.micro, name=Micro Instance, ram=613 disk=15 bandwidth=None
+#   price=0.02 driver=Amazon EC2 ...>,
+# <NodeSize: id=m1.small, name=Small Instance, ram=1740 disk=160 bandwidth=None
+#  price=0.065 driver=Amazon EC2 ...>,
+# >>> sizes[0].price
+# 0.02
+# >>>

Reply via email to