Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pylint errors in helpers.py #913

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

check:
@which pylint >/dev/null || pip install --user --upgrade pylint
@if python --version | grep -qi 'python 3'; then pylint --reports=no minio/copy_conditions.py minio/definitions.py minio/parsers.py minio/post_policy.py minio/signer.py minio/thread_pool.py minio/__init__.py minio/select; fi
@if python --version | grep -qi 'python 3'; then pylint --reports=no minio/copy_conditions.py minio/definitions.py minio/helpers.py minio/parsers.py minio/post_policy.py minio/signer.py minio/thread_pool.py minio/__init__.py minio/select; fi
@if python --version | grep -qi 'python 3'; then pylint --reports=no minio/api.py; fi

@which isort >/dev/null || pip install --user --upgrade isort
Expand Down
4 changes: 2 additions & 2 deletions minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
get_s3_region_from_endpoint, get_sha256_hexdigest,
get_target_url, is_amz_header, is_non_empty_string,
is_supported_header, is_valid_bucket_name,
is_valid_bucket_notification_config, is_valid_endpoint,
is_valid_endpoint, is_valid_notification_config,
is_valid_policy_type, is_valid_source_sse_object,
is_valid_sse_c_object, is_valid_sse_object, mkdir_p,
optimal_part_info, read_full)
Expand Down Expand Up @@ -500,7 +500,7 @@ def set_bucket_notification(self, bucket_name, notifications):
:param notifications: Notifications structure
"""
is_valid_bucket_name(bucket_name, False)
is_valid_bucket_notification_config(notifications)
is_valid_notification_config(notifications)

content = xml_marshal_bucket_notifications(notifications)
headers = {
Expand Down
Loading