-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-135852: Remove out of tree pywin32 dependency for NTEventLogHandler #137860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aisk
wants to merge
29
commits into
python:main
Choose a base branch
from
aisk:nteventlog
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 24 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
54016b1
Add RegisterEventSource and DeregisterEventSource in _winapi
aisk 427587f
Add ReportEvent to _winapi
aisk d78e2db
Update test
aisk 30242e0
Update test
aisk 3a7aca4
Add constants
aisk 545657d
Add news entry
aisk f6ce06c
Fix news entry
aisk bfa41e5
Fix test
aisk 093d248
Debug the test
aisk a186b71
Debug test
aisk 1e3479a
Change log type to sucess type in test
aisk b167204
Fix log type
aisk 7d26942
Remove ReportEvent with invalid handle cuz it will crash the process …
aisk a0ca21a
Merge remote-tracking branch 'upstream/main' into nteventlog
aisk 89e7cf8
Apply suggestions from code review
aisk 12d999d
Merge remote-tracking branch 'origin/nteventlog' into nteventlog
aisk 696ca3d
Update generated file
aisk 0e9953e
Update by review
aisk a0e331a
Fix raw_data signature
aisk d691c6c
Update NTEventLogHandler to use _winapi to emit event logs
aisk 14a9b86
Update news entry
aisk 3d06503
Update NTEventLogHandler by review comments
aisk 9d3f66e
Only support one single string for _winapi.ReposrtEvent
aisk 7503e18
Update by review comments
aisk 7aa607a
Update Lib/test/test_winapi.py
aisk d4a8a33
Using errno
aisk 4df7da4
Update Modules/_winapi.c
aisk f786db6
Merge remote-tracking branch 'origin/nteventlog' into nteventlog
aisk c82e5ac
Using LPCWSTR convertor
aisk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2025-08-17-00-28-50.gh-issue-135852.lQqOjQ.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Add :func:`!_winapi.RegisterEventSource`, | ||
| :func:`!_winapi.DeregisterEventSource` and :func:`!_winapi.ReportEvent`. | ||
| Using these functions in :class:`~logging.handlers.NTEventLogHandler` | ||
| to replace :mod:`!pywin32`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.