Skip to content

Commit e2a574c

Browse files
authored
Fix bug introduced in 'genpy.py' (#2461)
by commit adf9cfb.
1 parent 0ea624e commit e2a574c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com/win32com/client/genpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,8 +1141,8 @@ def do_generate(self):
11411141

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

0 commit comments

Comments
 (0)