File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3559,7 +3559,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
3559
3559
Result := nil ;
3560
3560
PyEngine := GetPythonEngine;
3561
3561
3562
- // If DelphiObject is nil Exit immediately with an error
3562
+ // If DelphiObject is nil exit immediately with an error
3563
3563
if not Assigned(DelphiObject) then
3564
3564
begin
3565
3565
PyEngine.PyErr_SetObject(PyEngine.PyExc_AttributeError^,
@@ -3953,7 +3953,7 @@ function TPyDelphiObject.SetAttrO(key, value: PPyObject): Integer;
3953
3953
Result := -1 ;
3954
3954
PyEngine := GetPythonEngine;
3955
3955
3956
- // If DelphiObject is nil Exit immediately with an error
3956
+ // If DelphiObject is nil exit immediately with an error
3957
3957
if not Assigned(DelphiObject) then
3958
3958
begin
3959
3959
PyEngine.PyErr_SetObject(PyEngine.PyExc_AttributeError^,
@@ -4001,10 +4001,6 @@ function TPyDelphiObject.SetAttrO(key, value: PPyObject): Integer;
4001
4001
// Subclasses have a __dict__ and can set extra fields
4002
4002
if Result <> 0 then
4003
4003
Result := inherited SetAttrO(key, value );
4004
- if Result <> 0 then
4005
- with PyEngine do
4006
- PyErr_SetObject(PyExc_AttributeError^, PyUnicodeFromString(
4007
- Format(rs_ErrAttrSet, [KeyName, ErrMsg])));
4008
4004
end ;
4009
4005
4010
4006
procedure TPyDelphiObject.SetDelphiObject (const Value : TObject);
You can’t perform that action at this time.
0 commit comments