Skip to content

Commit b45f557

Browse files
committed
Fix bad format IID in VTableItem.WriteVTableMap
1 parent fabbd69 commit b45f557

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ https://mhammond.github.io/pywin32_installers.html .
1414
Coming in build 309, as yet unreleased
1515
--------------------------------------
1616

17+
* Fix bad format when VTableItem.WriteVTableMap returns an object derived from IDispatch (#2481, @Avasam)
1718
* Removed param `hIcon` from `win32comext.shell.ShellExecuteEx`. It was unusable since Windows Vista (#2423, @Avasam)
1819
* Fixed `nbios.NCBStruct` packing (#2406, @Avasam)
1920
* Restored axdebug builds on Python 3.10 (#2416, @Avasam)

com/win32com/client/genpy.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,7 @@ def WriteVTableMap(self, generator):
279279
if item_num % 5 == 0:
280280
print("\n\t\t\t", end=" ", file=stream)
281281
defval = build.MakeDefaultArgRepr(arg)
282-
if arg[3] is None:
283-
arg3_repr = None
284-
else:
285-
arg3_repr = repr(arg[3])
286-
print(
287-
repr((arg[0], arg[1], defval, arg3_repr)), ",", end=" ", file=stream
288-
)
282+
print(repr((arg[0], arg[1], defval, arg[3])), ",", end=" ", file=stream)
289283
print("],", end=" ", file=stream)
290284
print(repr(desc.funckind), ",", end=" ", file=stream)
291285
print(repr(desc.invkind), ",", end=" ", file=stream)

0 commit comments

Comments
 (0)