Commit ec323fca authored by Marius Wachtler's avatar Marius Wachtler

Fix calling the unicode object using keyword args

before it produced the following exception:
TypeError: unicode() got multiple values for keyword argument 'encoding'
parent 4cc0a340
......@@ -813,7 +813,7 @@ static Box* typeCallInner(CallRewriteArgs* rewrite_args, ArgPassSpec argspec, Bo
ParamReceiveSpec paramspec(4, 3, false, false);
bool rewrite_success = false;
static ParamNames param_names({ "string", "encoding", "errors" }, "", "");
static ParamNames param_names({ "", "string", "encoding", "errors" }, "", "");
static Box* defaults[3] = { NULL, NULL, NULL };
Box* oargs[1];
......
......@@ -165,3 +165,4 @@ class C(object):
return MyUnicode("hello world")
print type(unicode(C()))
print unicode("test", encoding="UTF-8")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment