Skip to content

Commit 1cd6621

Browse files
committed
Minor changes in WrapClass
1 parent 4c0db58 commit 1cd6621

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/WrapDelphi.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3931,7 +3931,6 @@ function TPyDelphiWrapper.WrapClass(AClass: TClass): PPyObject;
39313931
Index : integer;
39323932
begin
39333933
CheckEngine;
3934-
// We cast the python object to the right delphi type
39353934
if not Assigned(AClass) then
39363935
Result := Engine.ReturnNone
39373936
else begin
@@ -3947,7 +3946,7 @@ function TPyDelphiWrapper.WrapClass(AClass: TClass): PPyObject;
39473946
if Index >= 0 then break;
39483947
DelphiClass := DelphiClass.ClassParent;
39493948
end;
3950-
Assert(Index >= 0, 'Internal Error in PyDelphiWrapper.Wrap'); // shouldn't happen
3949+
Assert(Index >= 0, 'Internal Error in PyDelphiWrapper.WrapClass'); // shouldn't happen
39513950

39523951
Result := PPyObject(TRegisteredClass(fClassRegister[Index]).PythonType.TheTypePtr);
39533952
Engine.Py_XINCREF(Result);

0 commit comments

Comments
 (0)