Skip to content
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ As of build 305, installation .exe files have been deprecated; see
Coming in build 312, as yet unreleased
--------------------------------------

* Fixed bad format when `VTableItem.WriteVTableMap` returns an object derived from `IDispatch` (mhammond#2481, [@Avasam][Avasam])
* Fixed missing version stamp on built `.dll` and `.exe` files (mhammond#2647, [@Avasam][Avasam])
* Removed considerations for Windows 95/98/ME (mhammond#2400, [@Avasam][Avasam])
This removes the following constants:
Expand Down
8 changes: 1 addition & 7 deletions com/win32com/client/genpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,7 @@ def WriteVTableMap(self, generator):
if item_num % 5 == 0:
print("\n\t\t\t", end=" ", file=stream)
defval = build.MakeDefaultArgRepr(arg)
if arg[3] is None:
arg3_repr = None
else:
arg3_repr = repr(arg[3])
print(
repr((arg[0], arg[1], defval, arg3_repr)), ",", end=" ", file=stream
)
print(repr((arg[0], arg[1], defval, arg[3])), ",", end=" ", file=stream)
print("],", end=" ", file=stream)
print(repr(desc.funckind), ",", end=" ", file=stream)
print(repr(desc.invkind), ",", end=" ", file=stream)
Expand Down