Skip to content

Commit b89fcd3

Browse files
committed
Merge branch 'main' of https://github.com/mhammond/pywin32 into Native-ARM64-CI-wheels
2 parents 332635f + 13ac5fd commit b89fcd3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+625
-588
lines changed

.github/ISSUE_TEMPLATE/issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: New issue
3-
about: Do not open github issues for general support requests
3+
about: Do not open GitHub issues for general support requests
44
---
55

66
<!--

AutoDuck/pywin32-document.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<document>
22
<important>
3-
<item name="View the change log" href="html/CHANGES.txt"/>
3+
<item name="View the change log" href="html/CHANGES.md"/>
44
</important>
55
<links>
66
<item name="Python Web Site" href="https://www.python.org"/>

AutoDuck/pywin32.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ HTML_FILES = $(WIN32_HELP_DIR)\*.html \
3030
$(WIN32COMEXT_DIR)/axscript/demos/client/ie/* \
3131
$(ISAPI_DIR)/doc/*.html \
3232
$(PYTHONWIN_DIR)/readme.html $(PYTHONWIN_DIR)/doc/* $(PYTHONWIN_DIR)/doc/debugger/* \
33-
../CHANGES.txt \
33+
../CHANGES.md \
3434

3535

3636
WIN32_SOURCE = $(WIN32_SOURCE_DIR)/*.cpp \

CHANGES.txt renamed to CHANGES.md

Lines changed: 215 additions & 200 deletions
Large diffs are not rendered by default.

Pythonwin/Scintilla/README_pythonwin renamed to Pythonwin/Scintilla/README_pythonwin.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
This is a copy of Scintilla 4.4.6 used for Pythonwin.
22

3-
Scintilla's home is https://www.scintilla.org/
3+
Scintilla's home is <https://www.scintilla.org/>
44

55
Only the sources relevant to Scintilla under Pythonwin are
6-
included (plus the Scintilla Licence.txt and README).
6+
included (plus the Scintilla `License.txt` and `README`).
77
For the full set of Scintilla sources, including its documentation
8-
and companion editor SciTE, see https://www.scintilla.org/ .
8+
and companion editor SciTE, see <https://www.scintilla.org/>.
99

1010
When updating the Scintilla source, also update the copyright year
1111
in Pythonwin/pywin/framework/app.py and regenerate

Pythonwin/Scintilla/lexers/LexBaan.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ void SCI_METHOD LexerBaan::Fold(Sci_PositionU startPos, Sci_Position length, int
906906
// Section Foldings.
907907
// One way of implementing Section Foldings, as there is no END markings of sections.
908908
// first section ends on the previous line of next section.
909-
// Re-written whole folding to accomodate this.
909+
// Re-written whole folding to accommodate this.
910910
if (options.baanFoldSections && atEOL) {
911911
currLineStyle = mainOrSubSectionLine(lineCurrent, styler);
912912
nextLineStyle = mainOrSubSectionLine(lineCurrent + 1, styler);

Pythonwin/dllmain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ extern "C" __declspec(dllexport) int __stdcall DllMainwin32ui(HINSTANCE hInstanc
191191
// insert into resource chain.
192192
pDLL = new CDynLinkLibrary(extensionDLL);
193193

194-
#else // Frozen .EXE that embedds win32ui is initializing
194+
#else // Frozen .EXE that embeds win32ui is initializing
195195
TRACE("win32ui in frozen %s initializing.\n", path);
196196
#endif
197197
}

Pythonwin/pywin/framework/app.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def OnDropFiles(self, msg):
287287
# except:
288288
# # take copies of the exception values, else other (handled) exceptions may get
289289
# # copied over by the other fns called.
290-
# win32ui.SetStatusText('An exception occured in a windows command handler.')
290+
# win32ui.SetStatusText('An exception occurred in a windows command handler.')
291291
# t, v, tb = sys.exc_info()
292292
# traceback.print_exception(t, v, tb.tb_next)
293293
# try:
@@ -297,7 +297,7 @@ def OnDropFiles(self, msg):
297297

298298
# Command handlers.
299299
def OnFileMRU(self, id, code):
300-
"Called when a File 1-n message is recieved"
300+
"Called when a File 1-n message is received"
301301
fileName = win32ui.GetRecentFileList()[id - win32ui.ID_FILE_MRU_FILE1]
302302
win32ui.GetApp().OpenDocumentFile(fileName)
303303

@@ -354,7 +354,9 @@ def OnInitDialog(self):
354354
except OSError:
355355
ver = None
356356
if not ver:
357-
warnings.warn(f"Could not read pywin32's version from '{version_path}'")
357+
warnings.warn(
358+
f"Could not read pywin32's version from '{version_path}'", stacklevel=1
359+
)
358360
self.SetDlgItemText(win32ui.IDC_ABOUT_VERSION, ver)
359361
self.HookCommand(self.OnButHomePage, win32ui.IDC_BUTTON1)
360362

Pythonwin/pywin/framework/dbgcommands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ def OnAdd(self, msg, code):
105105
## for the toolbar button IDC_DBG_ADD fails, since MFC falls back to
106106
## sending a normal command if the UI update command fails.
107107
## win32ui.MessageBox('There is no active window - no breakpoint can be added')
108-
warnings.warn("There is no active window - no breakpoint can be added")
108+
warnings.warn(
109+
"There is no active window - no breakpoint can be added", stacklevel=1
110+
)
109111
return None
110112
pathName = doc.GetPathName()
111113
lineNo = view.LineFromChar(view.GetSel()[0]) + 1

Pythonwin/pywin/idle/readme.txt renamed to Pythonwin/pywin/idle/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Pythonwin IDLE directory
33

44
This directory contains IDLE extensions used by
55
Pythonwin. The files in this directory that also appear in the main IDLE
6-
directory are intended be indentical to the latest available for IDLE.
6+
directory are intended be identical to the latest available for IDLE.
77

88
If you use IDLE from the CVS sources, then the files should be
99
identical. If you have a Python version installed that is more recent

0 commit comments

Comments
 (0)