From f4a40c7280ea4762b1353fa792a9aef3036d8f43 Mon Sep 17 00:00:00 2001 From: growfrow Date: Thu, 18 Apr 2024 15:43:47 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: growfrow --- bypy/windows/XUnzip.cpp | 2 +- format_docs/pdb/pdb_format.txt | 2 +- src/calibre/gui2/keyboard.py | 2 +- src/calibre/gui2/library/models.py | 2 +- src/calibre/gui2/toc/main.py | 2 +- src/calibre/utils/speedup.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bypy/windows/XUnzip.cpp b/bypy/windows/XUnzip.cpp index 40de3b2cec..29a7f235d0 100644 --- a/bypy/windows/XUnzip.cpp +++ b/bypy/windows/XUnzip.cpp @@ -3072,7 +3072,7 @@ unzFile unzOpenInternal(LUFILE *fin) uLong number_disk; // number of the current dist, used for spanning ZIP, unsupported, always 0 if (unzlocal_getShort(fin,&number_disk)!=UNZ_OK) err=UNZ_ERRNO; // number of the disk with the start of the central directory - uLong number_disk_with_CD; // number the the disk with central dir, used for spanning ZIP, unsupported, always 0 + uLong number_disk_with_CD; // number the disk with central dir, used for spanning ZIP, unsupported, always 0 if (unzlocal_getShort(fin,&number_disk_with_CD)!=UNZ_OK) err=UNZ_ERRNO; // total number of entries in the central dir on this disk if (unzlocal_getShort(fin,&us.gi.number_entry)!=UNZ_OK) err=UNZ_ERRNO; diff --git a/format_docs/pdb/pdb_format.txt b/format_docs/pdb/pdb_format.txt index 77fcba87db..9d8851b7e8 100644 --- a/format_docs/pdb/pdb_format.txt +++ b/format_docs/pdb/pdb_format.txt @@ -3,7 +3,7 @@ Format A PDB file can be broken into multiple parts. The header, record 0 and data. values stored within the various parts are big-endian byte order. The data -part is is broken down into multiple sections. The section count and offsets +part is broken down into multiple sections. The section count and offsets are referenced in the PDB header. Sections can be no more than 65505 bytes in length. diff --git a/src/calibre/gui2/keyboard.py b/src/calibre/gui2/keyboard.py index 83f32662ca..9fae266e1d 100644 --- a/src/calibre/gui2/keyboard.py +++ b/src/calibre/gui2/keyboard.py @@ -78,7 +78,7 @@ def finalize(shortcuts, custom_keys_map={}): # {{{ ''' Resolve conflicts and assign keys to every action in shortcuts, which must be a OrderedDict. User specified mappings of unique names to keys (as a - list of strings) should be passed in in custom_keys_map. Return a mapping + list of strings) should be passed in custom_keys_map. Return a mapping of unique names to resolved keys. Also sets the set_to_default member correctly for each shortcut. ''' diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index 95d02f39c7..0aacc88c89 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -386,7 +386,7 @@ class BooksModel(QAbstractTableModel): # {{{ def stop_metadata_backup(self): if getattr(self, 'metadata_backup', None) is not None: self.metadata_backup.stop() - # Would like to to a join here, but the thread might be waiting to + # Would like to a join here, but the thread might be waiting to # do something on the GUI thread. Deadlock. def refresh_ids(self, ids, current_row=-1): diff --git a/src/calibre/gui2/toc/main.py b/src/calibre/gui2/toc/main.py index 4ead1e444a..6bc94f3dd9 100644 --- a/src/calibre/gui2/toc/main.py +++ b/src/calibre/gui2/toc/main.py @@ -521,7 +521,7 @@ class TreeWidget(QTreeWidget): # {{{ def selectedIndexes(self): ans = super().selectedIndexes() if self.in_drop_event: - # For order to be be preserved when moving by drag and drop, we + # For order to be preserved when moving by drag and drop, we # have to ensure that selectedIndexes returns an ordered list of # indexes. sort_map = {self.indexFromItem(item):i for i, item in enumerate(self.iter_items())} diff --git a/src/calibre/utils/speedup.c b/src/calibre/utils/speedup.c index c521bd7693..fc3a209f6e 100644 --- a/src/calibre/utils/speedup.c +++ b/src/calibre/utils/speedup.c @@ -461,7 +461,7 @@ static PyObject* set_thread_name(PyObject *self, PyObject *args) { (void)(self); (void)(args); #if defined(_MSC_VER) || defined(__HAIKU__) - PyErr_SetString(PyExc_RuntimeError, "Setting thread names not supported on on this platform"); + PyErr_SetString(PyExc_RuntimeError, "Setting thread names not supported on this platform"); return NULL; #else char *name;