Skip to content

Commit e319b77

Browse files
authored
Fixed typos (#2664)
1 parent f2d1af2 commit e319b77

File tree

29 files changed

+73
-73
lines changed

29 files changed

+73
-73
lines changed

Pythonwin/Scintilla/lexers/LexBaan.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ static bool IsPreProcLine(Sci_Position line, LexAccessor &styler) {
228228
if (ch == '#' && style == SCE_BAAN_PREPROCESSOR) {
229229
if (styler.Match(i, "#elif") || styler.Match(i, "#else") || styler.Match(i, "#endif")
230230
|| styler.Match(i, "#if") || styler.Match(i, "#ifdef") || styler.Match(i, "#ifndef"))
231-
// Above PreProcessors has a seperate fold mechanism.
232-
return false;
231+
// Above PreProcessors has a separate fold mechanism.
232+
return false;
233233
else
234234
return true;
235235
}

Pythonwin/pywin/framework/editor/color/coloreditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def DoConfigChange(self):
230230
# way to get sensible behaviour from it is to ensure tabwidth != indentsize.
231231
# Further, usetabs will only ever go from 1->0, never 0->1.
232232
# This is _not_ the behaviour Pythonwin wants:
233-
# * Tab width is arbitary, so should have no impact on smarts.
233+
# * Tab width is arbitrary, so should have no impact on smarts.
234234
# * bUseTabs setting should reflect how new files are created, and
235235
# if Smart Tabs disabled, existing files are edited
236236
# * If "Smart Tabs" is enabled, bUseTabs should have no bearing

Pythonwin/pywin/framework/intpyapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def ProcessArgs(self, args, dde=None):
354354
raise RuntimeError(
355355
"/app only supported for new instances of Pythonwin.exe"
356356
)
357-
elif argType == "/dde": # Send arbitary command
357+
elif argType == "/dde": # Send arbitrary command
358358
if dde is not None:
359359
dde.Exec(par)
360360
else:

Pythonwin/pywin/scintilla/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def __call__(self, std, extra):
300300
return getattr(v, self.name)(*(std, extra))
301301

302302

303-
# Delegate to the document, but only from a single view (as each view sends it seperately)
303+
# Delegate to the document, but only from a single view (as each view sends it separately)
304304
class DocumentNotifyDelegate:
305305
def __init__(self, doc, name):
306306
self.doc = doc

Pythonwin/pywin/tools/hierlist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from win32api import RGB
2323

2424

25-
# helper to get the text of an arbitary item
25+
# helper to get the text of an arbitrary item
2626
def GetItemText(item):
2727
if isinstance(item, (tuple, list)):
2828
use = item[0]
@@ -280,7 +280,7 @@ def TakeDefaultAction(self, item):
280280

281281
##########################################################################
282282
#
283-
# Classes for use with seperate HierListItems.
283+
# Classes for use with separate HierListItems.
284284
#
285285
#
286286
class HierListWithItems(HierList):

Pythonwin/win32RichEdit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static PyObject *PyCRichEditView_wrap_changed(PyObject *self, PyObject *args)
156156
}
157157

158158
// @pymethod None|PyCRichEditView|SaveTextFile|Saves the contents of the control as a test file
159-
// @comm Theere is no equivilent MFC method. This is implemented in this module for performance reasons.
159+
// @comm There is no equivalent MFC method. This is implemented in this module for performance reasons.
160160
static PyObject *PyCRichEditView_save_text_file(PyObject *self, PyObject *args)
161161
{
162162
// Ported from Python code!
@@ -212,7 +212,7 @@ static PyObject *PyCRichEditView_save_text_file(PyObject *self, PyObject *args)
212212
RETURN_NONE;
213213
}
214214

215-
// @object PyCRichEditView|A class which implementes a CRichEditView. Derived from <o PyCRichEditView> and <o
215+
// @object PyCRichEditView|A class which implements a CRichEditView. Derived from <o PyCRichEditView> and <o
216216
// PyCRichEditCtrl>.
217217
static struct PyMethodDef PyCRichEditView_methods[] = {
218218
{"GetRichEditCtrl", PyCRichEditView_get_rich_edit_ctrl,

Pythonwin/win32app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static PyObject *ui_app_add_doc_template(PyObject *self, PyObject *args)
141141
// @pymethod |PyCWinApp|RemoveDocTemplate|Removes a template to the application list.
142142
static PyObject *ui_app_remove_doc_template(PyObject *self, PyObject *args)
143143
{
144-
// @comm Note that MFC does not provide an equivilent function.
144+
// @comm Note that MFC does not provide an equivalent function.
145145
PyObject *obTemplate;
146146
if (!PyArg_ParseTuple(args, "O:RemoveDocTemplate",
147147
&obTemplate)) // @pyparm <o PyCDocTemplate>|template||The template to be removed. Must have

Pythonwin/win32template.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ PyObject *PyCDocTemplate::SetDocStrings(PyObject *self, PyObject *args)
351351
if (pTempl == NULL)
352352
return NULL;
353353
pTempl->m_strDocStrings = docStrings;
354-
// @comm The string must be a \n seperated list of docstrings.
354+
// @comm The string must be a \n separated list of docstrings.
355355
// The elements are:
356356
// @flagh elementName|Description
357357
// @flag windowTitle|Title used for the window (only for SDI applications)
@@ -361,7 +361,7 @@ PyObject *PyCDocTemplate::SetDocStrings(PyObject *self, PyObject *args)
361361
// @flag filterExt|Extension for documents of this file type.
362362
// @flag regFileTypeId|Internal Id of the document as registered in the registry. Used to associate the extension
363363
// with the file type.
364-
// @flag regFileTypeName|Name of the document, as stored in the reigstry. This is the name presented to the user.
364+
// @flag regFileTypeName|Name of the document, as stored in the registry. This is the name presented to the user.
365365
RETURN_NONE;
366366
}
367367
// @pymethod |PyCDocTemplate|SetContainerInfo|Sets the resources to be used when an OLE 2 object is in-place activated.

Pythonwin/win32ui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class PYW_EXPORT ui_type_CObject : public ui_type {
161161
public:
162162
CRuntimeClass *pCObjectClass;
163163
// A map of CRuntimeClass to these objects. Populated by the ctor.
164-
// Allows us to convert from an arbitary CObject to the best Python type.
164+
// Allows us to convert from an arbitrary CObject to the best Python type.
165165
typedef CMap<CRuntimeClass *, CRuntimeClass *, ui_type_CObject *, ui_type_CObject *> CRuntimeClassTypeMap;
166166
static CRuntimeClassTypeMap *typemap;
167167
};

Pythonwin/win32view.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@ static PyObject *ui_view_set_scroll_sizes(PyObject *self, PyObject *args)
524524
&map_mode, // @pyparm int|mapMode||The mapping mode for this view.
525525
&total.cx, &total.cy, // @pyparm (x,y)|sizeTotal||The total size of the view. Sizes are in
526526
// logical units. Both x and y must be greater than zero.
527-
&page.cx, &page.cy, // @pyparm (x,y)|sizePage|win32ui.rectDefault|The number of untils to
527+
&page.cx, &page.cy, // @pyparm (x,y)|sizePage|win32ui.rectDefault|The number of units to
528528
// scroll in response to a page-down command.
529-
&line.cx, &line.cy)) // @pyparm (x,y)|sizePage|win32ui.rectDefault|The number of untils to
529+
&line.cx, &line.cy)) // @pyparm (x,y)|sizePage|win32ui.rectDefault|The number of units to
530530
// scroll in response to a line-down command.
531531
return NULL;
532532

@@ -652,7 +652,7 @@ PyObject *PyCCtrlView_on_command(PyObject *self, PyObject *args)
652652
return DoBaseOnCommand(CPythonCtrlView, &PyCCtrlView::type, self, args);
653653
}
654654

655-
// @object PyCCtrlView|A class which implementes a CCtrlView (ie, a view based on a dialog resource.
655+
// @object PyCCtrlView|A class which implements a CCtrlView (ie, a view based on a dialog resource.
656656
static struct PyMethodDef PyCCtrlView_methods[] = {
657657
{"OnCommand", PyCCtrlView_on_command,
658658
1}, // @pymeth OnCommand|Calls the standard Python framework OnCommand handler
@@ -879,7 +879,7 @@ PyObject *PyCEditView_on_command(PyObject *self, PyObject *args)
879879
// inherited from view
880880
//
881881
///////////////////////////////////////
882-
// @object PyCEditView|A class which implementes a CView of a text file. Derived from <o PyCView> and <o PyCEdit>
882+
// @object PyCEditView|A class which implements a CView of a text file. Derived from <o PyCView> and <o PyCEdit>
883883
// objects.
884884
static struct PyMethodDef ui_edit_window_methods[] = {
885885
{"IsModified", ui_edit_window_is_modified, 1}, // @pymeth IsModified|Indicates if the view's document is modified.
@@ -962,7 +962,7 @@ PyObject *PyCListView_on_command(PyObject *self, PyObject *args)
962962
}
963963

964964
///////////////////////////////////////
965-
// @object PyCListView|A class which implementes a CListView. Derived from <o PyCView> and <o PyCListCtrl> objects.
965+
// @object PyCListView|A class which implements a CListView. Derived from <o PyCView> and <o PyCListCtrl> objects.
966966
static struct PyMethodDef ui_list_view_methods[] = {
967967
{"PreCreateWindow", PyCListView_pre_create_window,
968968
1}, // @pymeth PreCreateWindow|Calls the underlying MFC PreCreateWindow method.
@@ -1038,7 +1038,7 @@ PyObject *PyCTreeView_on_command(PyObject *self, PyObject *args)
10381038
}
10391039

10401040
///////////////////////////////////////
1041-
// @object PyCTreeView|A class which implementes a CTreeView. Derived from <o PyCView> and <o PyCTreeCtrl> objects.
1041+
// @object PyCTreeView|A class which implements a CTreeView. Derived from <o PyCView> and <o PyCTreeCtrl> objects.
10421042
static struct PyMethodDef ui_tree_view_methods[] = {
10431043
{"PreCreateWindow", PyCTreeView_pre_create_window,
10441044
1}, // @pymeth PreCreateWindow|Calls the underlying MFC PreCreateWindow method.
@@ -1097,7 +1097,7 @@ PyObject *PyCFormView_on_command(PyObject *self, PyObject *args)
10971097
return DoBaseOnCommand(CPythonFormView, &PyCFormView::type, self, args);
10981098
}
10991099

1100-
// @object PyCFormView|A class which implementes a CFormView (ie, a view based on a dialog resource.
1100+
// @object PyCFormView|A class which implements a CFormView (ie, a view based on a dialog resource.
11011101
static struct PyMethodDef PyCFormView_methods[] = {
11021102
{"OnCommand", PyCFormView_on_command,
11031103
1}, // @pymeth OnCommand|Calls the standard Python framework OnCommand handler

0 commit comments

Comments
 (0)