Skip to content

Commit f5a6842

Browse files
committed
1 parent 2adc5f2 commit f5a6842

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/PythonEngine.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4887,8 +4887,10 @@ function TPythonEngine.PyObjectAsString( obj : PPyObject ) : string;
48874887
end;
48884888
S := PyObject_Str( obj );
48894889
if Assigned(S) and PyUnicode_Check(S) then
4890+
begin
48904891
W := PyUnicodeAsString(S);
48914892
Result := string(W);
4893+
end;
48924894
Py_XDECREF(S);
48934895
end;
48944896

0 commit comments

Comments
 (0)