We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4969994 commit a63eb17Copy full SHA for a63eb17
Source/VarPyth.pas
@@ -1599,10 +1599,7 @@ function TPythonVariantType.EvalPython(const V: TVarData;
1599
PyDict_SetItemString(_KW, fNamedParams[i].Name, ArgAsPythonObject(fNamedParams[i].Index));
1600
1601
// call the func or method, with or without named parameters (KW)
1602
- if Assigned(_KW) then
1603
- Result := PyEval_CallObjectWithKeywords(_obj, _Args, _KW)
1604
- else
1605
- Result := PyEval_CallObjectWithKeywords(_obj, _Args, nil);
+ Result := PyEval_CallObjectWithKeywords(_obj, _Args, _KW);
1606
CheckError(True);
1607
finally
1608
Py_XDecRef(_Args);
0 commit comments