Commit 5a31005
committed
TST: Replace pywin32 with ctypes wrapper
We only use `pywin32` for one function, and while taking care of all the
wrapping is nice, it's easy to just take the information from the MSDN
docs [1] and pass it through `ctypes` instead.
This avoids the dependency entirely, helping to fix package conflicts
with pixi [2].
[1] https://learn.microsoft.com/en-us/windows/console/generateconsolectrlevent
[2] matplotlib#30877 (comment)1 parent 69cc7f8 commit 5a31005
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
707 | 710 | | |
708 | 711 | | |
709 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
0 commit comments