You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2019/12/09 20:16:24 UTC
[libcloud] branch trunk updated: Fix formatting.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0989163 Fix formatting.
0989163 is described below
commit 0989163c76e05d8887e9df096626cee591b98099
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Mon Dec 9 21:15:25 2019 +0100
Fix formatting.
---
docs/upgrade_notes.rst | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/docs/upgrade_notes.rst b/docs/upgrade_notes.rst
index 2e7a271..6ad0b5c 100644
--- a/docs/upgrade_notes.rst
+++ b/docs/upgrade_notes.rst
@@ -14,28 +14,28 @@ Libcloud 2.7.0
Before:
-.. sourcecode:: python
+ .. sourcecode:: python
- from libcloud.storage.types import Provider
- from libcloud.storage.providers import get_driver
+ from libcloud.storage.types import Provider
+ from libcloud.storage.providers import get_driver
- S3_EU_CENTRAL = get_driver(Provider.S3_EU_CENTRAL)
- S3_EU_WEST_1 = get_driver(Provider.S3_EU_WEST)
+ S3_EU_CENTRAL = get_driver(Provider.S3_EU_CENTRAL)
+ S3_EU_WEST_1 = get_driver(Provider.S3_EU_WEST)
- driver_eu_central = S3_EU_CENTRAL('api key', 'api secret')
- driver_eu_west_1 = S3_EU_WEST_1('api key', 'api secret')
+ driver_eu_central = S3_EU_CENTRAL('api key', 'api secret')
+ driver_eu_west_1 = S3_EU_WEST_1('api key', 'api secret')
After:
-.. sourcecode:: python
+ .. sourcecode:: python
- from libcloud.storage.types import Provider
- from libcloud.storage.providers import get_driver
+ from libcloud.storage.types import Provider
+ from libcloud.storage.providers import get_driver
- S3 = get_driver(Provider.S3)
+ S3 = get_driver(Provider.S3)
- driver_eu_central = S3('api key', 'api secret', region='eu-central-1')
- driver_eu_west_1 = S3('api key', 'api secret', region='eu-west-1')
+ driver_eu_central = S3('api key', 'api secret', region='eu-central-1')
+ driver_eu_west_1 = S3('api key', 'api secret', region='eu-west-1')
For now, old approach will still work, but it will be deprecated and fully
removed in a future release. Deprecation and removal will be announced well in