Skip to content
Open
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 b2sdk/_internal/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class B2RequestTimeout(TransientErrorMixin, B2SimpleError):


class B2RequestTimeoutDuringUpload(B2RequestTimeout):
# if a timeout is hit during upload, it is not guaranteed that the the server has released the upload token lock already, so we'll use a new token
# if a timeout is hit during upload, it is not guaranteed that the server has released the upload token lock already, so we'll use a new token
def should_retry_http(self):
return False

Expand Down
2 changes: 1 addition & 1 deletion b2sdk/_internal/sync/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def files_are_different(
newer_file_mode: NewerFileSyncMode = NewerFileSyncMode.RAISE_ERROR,
):
"""
Compare two files and determine if the the destination file
Compare two files and determine if the destination file
should be replaced by the source file.

:param b2sdk.v2.AbstractPath source_path: source file object
Expand Down
2 changes: 1 addition & 1 deletion b2sdk/v1/bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# and to retain old style download_file_by_name signature
# and to retain old style download_file_by_id signature (allowing for the new one as well)
# and to retain old style get_file_info_by_name return type
# and to to adjust to old style B2Api.get_file_info return type
# and to adjust to old style B2Api.get_file_info return type
# and to retain old style update return type
class Bucket(v2.Bucket):
FILE_VERSION_FACTORY = staticmethod(FileVersionInfoFactory)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/b2http/test_b2http.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def test_get_content(self, b2_http: B2Http):
close_mock = MagicMock()

def response_callback(resp):
# mock the response close method so that we can can check if it has been called later
# mock the response close method so that we can check if it has been called later
resp.close = close_mock
return resp

Expand Down