File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
PythonForDelphi/Components/Sources/Core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1517,7 +1517,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15171517    Finally call inherited which calls PyObject_GenericGetAttr 
15181518*) 
15191519var 
1520-   Name : ShortString ;
1520+   Name : string ;
15211521{ $IFNDEF FPC} 
15221522  Info: PMethodInfoHeader;
15231523{ $ENDIF} 
@@ -1526,7 +1526,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15261526begin 
15271527  Result := nil ;
15281528  if  GetPythonEngine.PyString_Check(Key) then 
1529-     Name  := ShortString( GetPythonEngine.PyString_AsDelphiString(Key) )
1529+     Name  := GetPythonEngine.PyString_AsDelphiString(Key)
15301530  else 
15311531    Name  := ' ' 
15321532
@@ -1554,7 +1554,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15541554  else { $ENDIF} if  Assigned(DelphiObject) and  (Name  <> ' ' then 
15551555  begin 
15561556    //  Not a  method, try a property.
1557-     PropInfo := GetPropInfo(DelphiObject, string( Name ) );
1557+     PropInfo := GetPropInfo(DelphiObject, Name );
15581558    if  PropInfo <> nil  then 
15591559    begin 
15601560      //  we have a property
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments