chore: remove repetitive words

Signed-off-by: growfrow <growfrow@outlook.com>
This commit is contained in:
growfrow 2024-04-18 15:43:47 +08:00
parent 3c053fd1cb
commit f4a40c7280
6 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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.

View File

@ -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.
'''

View File

@ -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):

View File

@ -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())}

View File

@ -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;