File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -6329,15 +6329,13 @@ def get_resources_strings(self):
63296329 for res_type in self .DIRECTORY_ENTRY_RESOURCE .entries :
63306330 if hasattr (res_type , "directory" ):
63316331 for resource_id in res_type .directory .entries :
6332- if hasattr (resource_id , "directory" ):
6333- if (
6334- hasattr (resource_id .directory , "strings" )
6335- and resource_id .directory .strings
6336- ):
6337- for res_string in list (
6338- resource_id .directory .strings .values ()
6339- ):
6340- resources_strings .append (res_string )
6332+ if (
6333+ hasattr (resource_id , "directory" )
6334+ and hasattr (resource_id .directory , "strings" )
6335+ and resource_id .directory .strings
6336+ ):
6337+ for res_string in resource_id .directory .strings .values ():
6338+ resources_strings .append (res_string )
63416339
63426340 return resources_strings
63436341
You can’t perform that action at this time.
0 commit comments