File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -3931,7 +3931,6 @@ function TPyDelphiWrapper.WrapClass(AClass: TClass): PPyObject;
3931
3931
Index : integer;
3932
3932
begin
3933
3933
CheckEngine;
3934
- // We cast the python object to the right delphi type
3935
3934
if not Assigned(AClass) then
3936
3935
Result := Engine.ReturnNone
3937
3936
else begin
@@ -3947,7 +3946,7 @@ function TPyDelphiWrapper.WrapClass(AClass: TClass): PPyObject;
3947
3946
if Index >= 0 then break;
3948
3947
DelphiClass := DelphiClass.ClassParent;
3949
3948
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
3951
3950
3952
3951
Result := PPyObject(TRegisteredClass(fClassRegister[Index]).PythonType.TheTypePtr);
3953
3952
Engine.Py_XINCREF(Result);
You can’t perform that action at this time.
0 commit comments