Skip to content

Commit

Permalink
Fix bug introduced in 'genpy.py' (#2461)
Browse files Browse the repository at this point in the history
by commit adf9cfb.
  • Loading branch information
geppi authored Jan 16, 2025
1 parent 0ea624e commit e2a574c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com/win32com/client/genpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,8 +1141,8 @@ def do_generate(self):

print("RecordMap = {", file=stream)
for record in recordItems.values():
record_str = f"{record.doc[0]!r}: '{record.clsid}',"
if record.clsid == pythoncom.IID_NULL:
record_str = f"{record.doc[0]!r}: '{record.clsid}',"
print(
f"\t###{record_str}",
"# Record disabled because it doesn't have a non-null GUID",
Expand Down

0 comments on commit e2a574c

Please sign in to comment.