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;
39313931 Index : integer;
39323932begin
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);
You can’t perform that action at this time.
0 commit comments