From 7534c5708a6260f9c869157c4fe16e36c15decd4 Mon Sep 17 00:00:00 2001 From: Avasam Date: Wed, 29 May 2024 01:02:05 -0400 Subject: [PATCH] Add changelog --- CHANGES.txt | 2 +- com/win32com/client/build.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ed77fb8e9c..2a47343c08 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -136,7 +136,7 @@ Coming in build 307, as yet unreleased * Use byte-string (`b""`) for constant bytes values instead of superfluous `.encode` calls (#2046, @Avasam) * Cleaned up unused imports (#1986, #2051, #1990, #2124, #2126, @Avasam) * Removed duplicated declarations, constants and definitions (#2050 , #1950, #1990, @Avasam) -* General speed and size improvements due to all the removed code. (#2046, #1986, #2050, #1950, #2085, #2087, #2051, #1990, #2106, #2127, #2124, #2126, #2177, #2218, #2202, #2205, #2217) +* General speed and size improvements due to all the removed code. (#2046, #1986, #2050, #1950, #2085, #2087, #2051, #1990, #2106, #2127, #2124, #2126, #2177, #2218, #2202, #2205, #2217, #2272) ### adodbapi * Remove references to outdated IronPython (#2049, @Avasam) diff --git a/com/win32com/client/build.py b/com/win32com/client/build.py index b4115befec..6d6089bab4 100644 --- a/com/win32com/client/build.py +++ b/com/win32com/client/build.py @@ -404,7 +404,7 @@ def MakeDispatchFuncMethod(self, entry, name, bMakeClass=1): if len(bad_params) == 0 and len(retDesc) == 2 and retDesc[1] == 0: rd = retDesc[0] if rd in NoTranslateMap: - s = "{}\treturn self._oleobj_.InvokeTypes(%d, LCID, {}, {}, {}{})".format( + s = "{}\treturn self._oleobj_.InvokeTypes({}, LCID, {}, {}, {}{})".format( linePrefix, id, fdesc[4], @@ -444,7 +444,7 @@ def MakeDispatchFuncMethod(self, entry, name, bMakeClass=1): s = f"{linePrefix}\t# Result is a Unicode object\n" s = ( s - + "{}\treturn self._oleobj_.InvokeTypes(%d, LCID, {}, {}, {!r}{})" + + "{}\treturn self._oleobj_.InvokeTypes({}, LCID, {}, {}, {!r}{})" % ( linePrefix, id,