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

Disk.filename now takes unused key, value params #61

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

elistevens
Copy link
Contributor

This allows Disk subclasses to allow for discoverable names based on key, value, md5, etc. when writing files to disk.
Disk.store has an incompatible signature change, however, in that it now needs to accept key arguments.

This could be fixed by having calls to store first attempt with the key=key param, but catch TypeError and fall back to calling without the key param. I'm fine implementing either; not sure what your philosophy is on breaking changes like this.

Also, let me know how you feel about the test coverage.

This allows Disk subclasses to allow for discoverable names based on key, value, md5, etc. when writing files to disk.
Disk.store has an incompatible signature change, however, in that it now needs to accept key arguments.
@elistevens elistevens mentioned this pull request Dec 13, 2017
6 tasks
@grantjenks grantjenks merged commit 8a21104 into grantjenks:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants