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 formatting as per pep8 in copy_conditions.py #881

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions minio/copy_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
# key: "x-amz-copy-if-modified-since",
# value: "Tue, 15 Nov 1994 12:45:26 GMT",
#


class CopyConditions(collectionsAbc.MutableMapping):
"""
A :class:`CopyConditions <CopyConditions>` collection of
Expand All @@ -51,9 +53,9 @@ class CopyConditions(collectionsAbc.MutableMapping):
- x-amz-copy-source-if-modified-since

"""

def __init__(self, *args, **kwargs):
self._store = dict()
self.update(dict(*args, **kwargs)) # use the free update to set keys
self._store = dict(*args, **kwargs)

def __getitem__(self, key):
return self._store[key]
Expand Down