Skip to content

Commit 8755d02

Browse files
committed
Merge branch 'main' of https://github.com/mhammond/pywin32 into Native-ARM64-CI-wheels
2 parents 1bc0daf + 572e657 commit 8755d02

40 files changed

+103
-211
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Coming in build 312, as yet unreleased
2323
This removes the following constants:
2424
* `win32con.FILE_ATTRIBUTE_ATOMIC_WRITE`
2525
* `win32con.FILE_ATTRIBUTE_XACTION_WRITE`
26+
* Removed considerations for MFC < 9 (VS 2008) (mhammond#2669, [@Avasam][Avasam])
27+
* This removes the unusable `PyCSliderCtrl.VerifyPos` method
2628

2729
Build 311, released 2025/07/14
2830
------------------------------

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/win32control.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,25 +1855,6 @@ static PyObject *PyCSliderCtrl_clear_sel(PyObject *self, PyObject *args)
18551855
RETURN_NONE;
18561856
}
18571857

1858-
// @pymethod int|PyCSliderCtrl|VerifyPos|Verify the position is between configured min and max
1859-
static PyObject *PyCSliderCtrl_verify_pos(PyObject *self, PyObject *args)
1860-
{
1861-
CHECK_NO_ARGS(args);
1862-
CSliderCtrl *pSC = GetSliderCtrl(self);
1863-
if (!pSC)
1864-
return NULL;
1865-
#if _MFC_VER >= 0x0710
1866-
// This just vanished in VS7
1867-
PyErr_SetString(PyExc_NotImplementedError, "VerifyPos does not appear in this version of MFC");
1868-
return NULL;
1869-
#else
1870-
GUI_BGN_SAVE;
1871-
pSC->VerifyPos();
1872-
GUI_END_SAVE;
1873-
#endif
1874-
RETURN_NONE;
1875-
}
1876-
18771858
// @pymethod int|PyCSliderCtrl|ClearTics|Clear the control's tic marks
18781859
static PyObject *PyCSliderCtrl_clear_tics(PyObject *self, PyObject *args)
18791860
{
@@ -1919,7 +1900,6 @@ static struct PyMethodDef PyCSliderCtrl_methods[] = {
19191900
{"SetTic", PyCSliderCtrl_set_tic, 1}, // @pymeth SetTic|Set a tick at the position
19201901
{"SetTicFreq", PyCSliderCtrl_set_tic_freq, 1}, // @pymeth SetTicFreq|Set the tic mark frequency
19211902
{"ClearSel", PyCSliderCtrl_clear_sel, 1}, // @pymeth ClearSel|Clear any control selection
1922-
{"VerifyPos", PyCSliderCtrl_verify_pos, 1}, // @pymeth VerifyPos|Verify the positon between min and max
19231903
{"ClearTics", PyCSliderCtrl_clear_tics, 1}, // @pymeth ClearTics|Clear any tic marks from the control
19241904
{NULL, NULL}};
19251905

Pythonwin/win32prop.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,9 @@ PyObject *ui_propsheet_press_button(PyObject *self, PyObject *args)
440440
if (!PyArg_ParseTuple(args, "i", &button))
441441
return NULL;
442442
GUI_BGN_SAVE;
443-
BOOL ok = TRUE;
444-
#if _MFC_VER < 0x0710
445-
ok =
446-
#endif
447-
pPS->PressButton(button);
448-
443+
pPS->PressButton(button);
449444
GUI_END_SAVE;
450-
if (!ok)
451-
RETURN_ERR("PressButton failed");
445+
452446
RETURN_NONE;
453447
}
454448

0 commit comments

Comments
 (0)