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 2022/01/28 22:00:20 UTC
[libcloud] 03/07: Linting and black
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
commit f80f94b6e4ff789ab8f90891ede2eef6cc462018
Author: Rainer 'rei' Schuth <re...@reixd.net>
AuthorDate: Thu Dec 16 15:00:02 2021 +0100
Linting and black
---
docs/examples/storage/scaleway/upload_example.py | 2 +-
libcloud/common/aws.py | 3 +--
libcloud/storage/drivers/scaleway.py | 6 +++++-
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/docs/examples/storage/scaleway/upload_example.py b/docs/examples/storage/scaleway/upload_example.py
index 6374a37..41b4a91 100644
--- a/docs/examples/storage/scaleway/upload_example.py
+++ b/docs/examples/storage/scaleway/upload_example.py
@@ -11,7 +11,7 @@ container = driver.get_container(container_name="<your-bucket-name>")
extra = {
"meta_data": {"owner": "myuser", "created": "2001-05-25"},
- "acl": "public-read"
+ "acl": "public-read",
}
with open(FILE_PATH, "rb") as iterator:
diff --git a/libcloud/common/aws.py b/libcloud/common/aws.py
index 515e994..f6498f8 100644
--- a/libcloud/common/aws.py
+++ b/libcloud/common/aws.py
@@ -347,8 +347,7 @@ class AWSRequestSignerAlgorithmV4(AWSRequestSigner):
)
def _get_signed_headers(self, headers):
- return ";".join([k.lower()
- for k in sorted(headers.keys(), key=str.lower)])
+ return ";".join([k.lower() for k in sorted(headers.keys(), key=str.lower)])
def _get_canonical_headers(self, headers):
return (
diff --git a/libcloud/storage/drivers/scaleway.py b/libcloud/storage/drivers/scaleway.py
index 8a5798c..7edfb03 100644
--- a/libcloud/storage/drivers/scaleway.py
+++ b/libcloud/storage/drivers/scaleway.py
@@ -13,7 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from libcloud.storage.drivers.s3 import S3SignatureV4Connection, S3StorageDriver, S3_CDN_URL_EXPIRY_HOURS
+from libcloud.storage.drivers.s3 import (
+ S3SignatureV4Connection,
+ S3StorageDriver,
+ S3_CDN_URL_EXPIRY_HOURS,
+)
from libcloud.storage.drivers.s3 import BaseS3StorageDriver
__all__ = ["ScalewayStorageDriver"]