Skip to content

Commit 0c7297b

Browse files
Support COM identifiers with national characters (#2632)
Some classes have them, e.g. 1C:Enterprise
1 parent 84ec90c commit 0c7297b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com/win32com/client/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,9 @@ def MakePublicAttributeName(className, is_global=False):
661661
if ret == className: # didn't change - force all uppercase.
662662
ret = ret.upper()
663663
return ret
664+
elif className.isidentifier():
665+
# some COM objects have identifiers with national characters
666+
return className
664667
# Strip non printable chars
665668
return "".join([char for char in className if char in valid_identifier_chars])
666669

0 commit comments

Comments
 (0)