diff --git a/b2sdk/_internal/exception.py b/b2sdk/_internal/exception.py index 090b3291..2847bc3f 100644 --- a/b2sdk/_internal/exception.py +++ b/b2sdk/_internal/exception.py @@ -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 diff --git a/b2sdk/_internal/sync/policy.py b/b2sdk/_internal/sync/policy.py index 724d09c4..50931826 100644 --- a/b2sdk/_internal/sync/policy.py +++ b/b2sdk/_internal/sync/policy.py @@ -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 diff --git a/b2sdk/v1/bucket.py b/b2sdk/v1/bucket.py index f2922128..320ad440 100644 --- a/b2sdk/v1/bucket.py +++ b/b2sdk/v1/bucket.py @@ -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) diff --git a/test/unit/b2http/test_b2http.py b/test/unit/b2http/test_b2http.py index 13846479..3875fecf 100644 --- a/test/unit/b2http/test_b2http.py +++ b/test/unit/b2http/test_b2http.py @@ -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