Merge pull request #14841 from squeek502/is-cygwin-pty-stuff

`os.isCygwinPty`: Fix a bug, replace kernel32 call, and optimize
5e161c102dVeikka Tuominen committed on 3/21/2023, 1:03:33 PM· committed by GitHubparents1e087d393b35c6
4 files changedLine totals unavailable