Skip to content

Commit a925b8c

Browse files
authored
do no lowercase first letter of allcaps keyword (#624)
fixing #623: Don't lower-case the first character of a keyword argument when the entire segment is upper case.
1 parent 7448193 commit a925b8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyobjc-core/Lib/objc/_transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ def _selectorToKeywords(selector):
4343
parts = selector.split(":")[:-1]
4444
if parts[0].startswith("With"):
4545
parts[0] = parts[0][4:]
46-
parts[0] = parts[0][:1].lower() + parts[0][1:]
46+
if len(parts[0]) > 1 and not parts[0][1].isupper():
47+
parts[0] = parts[0][:1].lower() + parts[0][1:]
4748

4849
return tuple(parts)
4950

0 commit comments

Comments
 (0)