Skip to content

Commit 2cb6be9

Browse files
committed
Implement "s" type in ParseTupleAndKeywords
1 parent fc906f0 commit 2cb6be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎py/args.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ func ParseTupleAndKeywords(args Tuple, kwargs StringDict, format string, kwlist
441441
switchop{
442442
case"O":
443443
*result=arg
444-
case"U":
444+
case"U", "s":
445445
if_, ok:=arg.(String); !ok{
446446
panic(ExceptionNewf(TypeError, "%s() argument %d must be str, not %s", name, i+1, arg.Type().Name))
447447
}

0 commit comments

Comments
(0)