-
Notifications
You must be signed in to change notification settings - Fork 86
Remove requirement for tell() on decrypt #104
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
Conversation
flake8 and pylint checks will still fail on one line in this change being too long. I have some changes staged to address this by way of expanding imports which also makes the code easier to follow, but I think it is better to have those as their own PR for clarity. |
Rebased on master to catch |
@property | ||
def body_start(self): | ||
"""Log deprecation warning when body_start is accessed.""" | ||
_LOGGER.warning("StreamDecryptor.body_start is deprecated and will be removed in 1.4.0") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would adding this deprecation message be released through a minor rev or a patch rev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per our versioning statement, the warnings should be added in a Z
rev and the removal should happen in a Y
rev.
https://github.com/aws/aws-encryption-sdk-python/blob/master/VERSIONING.rst
Issue #, if available: #103
Description of changes:
This is the first in a series of changes to implement #103.
This removes the need for the source stream to implement
tell()
on the decrypt path.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.