From 5db7837aabab2a458cd008ca25e67dbd4936b3af Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 28 Jul 2024 14:22:29 -0400 Subject: [PATCH 1/2] Remove obsolete for 16 years `is_platform_unicode` --- Pythonwin/pywin/__init__.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Pythonwin/pywin/__init__.py b/Pythonwin/pywin/__init__.py index 43d5c446f..f510d7145 100644 --- a/Pythonwin/pywin/__init__.py +++ b/Pythonwin/pywin/__init__.py @@ -1,7 +1,3 @@ -# is_platform_unicode is an old variable that was never correctly used and -# is no longer referenced in pywin32. It is staying for a few releases incase -# others are looking at it, but it will go away soon! -is_platform_unicode = 0 - -# This one *is* real and used - but in practice can't be changed. -default_scintilla_encoding = "utf-8" # Scintilla _only_ supports this ATM +# Referenced and used variable - but in practice can't be changed. +# Scintilla _only_ supports "utf-8" ATM +default_scintilla_encoding = "utf-8" From f4cbb7f6cbd6ba4010c8c9758db43603d6228864 Mon Sep 17 00:00:00 2001 From: Avasam Date: Sun, 28 Jul 2024 14:28:23 -0400 Subject: [PATCH 2/2] Add changes --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.txt b/CHANGES.txt index 0e11d0643..63521fac2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -15,6 +15,7 @@ Coming in build 307, as yet unreleased -------------------------------------- ### pywin32 +* Remove obsolete and unused `pywin.is_platform_unicode` (#2343, @Avasam) * Add RealGetWindowClass (#2299, @CristiFati) * Make it compile on Python 3.13 (#2260, @clin1234) * Fixed accidentally trying to raise a `str` instead of an `Exception` in (#2270, @Avasam)