Skip to content

Commit 24d15bb

Browse files
committed
1 parent a55caa5 commit 24d15bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python4lazarus/PythonEngine.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4780,8 +4780,10 @@ function TPythonEngine.PyObjectAsString( obj : PPyObject ) : string;
47804780
end;
47814781
S := PyObject_Str( obj );
47824782
if Assigned(S) and PyUnicode_Check(S) then
4783+
begin
47834784
W := PyUnicodeAsString(S);
47844785
Result := string(W);
4786+
end;
47854787
Py_XDECREF(S);
47864788
end;
47874789

0 commit comments

Comments
 (0)