-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add ability to upload from an unbound source such as standard input or a named pipe #899
Add ability to upload from an unbound source such as standard input or a named pipe #899
Conversation
"sha1_sum": args.sha1, | ||
} | ||
|
||
def execute_operation(self, **kwargs) -> 'b2sdk.file_version.FileVersion': |
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.
why this and not abc?
) | ||
return file_id | ||
|
||
class NotAnInputStream(Exception): |
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.
I don't think I've seen his pattern in this project before, any reason for not declaring this exception at module level?
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.
because the only function rising it is a class method; i.e. if this function is removed, exception should be removed as well
We are talking about ~4k long file, which is why namespacing is especially important.
It maybe best to use a squash merge here since there are so many commits here.