@@ -208,10 +208,10 @@ def do_classdesc(self, parent=None, ident=0):
208208
209209 if field_type == self .TYPE_ARRAY :
210210 field_type = self .read_and_exec_opcode (ident = ident + 1 , expect = [self .TC_STRING , self .TC_REFERENCE ])
211- if field_type is not None :
212- field_type = "array of " + field_type
213- else :
214- field_type = "array of None"
211+ # if field_type is not None:
212+ # field_type = "array of " + field_type
213+ # else:
214+ # field_type = "array of None"
215215 elif field_type == self .TYPE_OBJECT :
216216 field_type = self .read_and_exec_opcode (ident = ident + 1 , expect = [self .TC_STRING , self .TC_REFERENCE ])
217217
@@ -317,7 +317,6 @@ def do_array(self, parent=None, ident=0):
317317 (size , ) = self ._readStruct (">i" )
318318 self .print_ident ("size: " + str (size ), ident )
319319
320- # for char in classdesc.name:
321320 type_char = classdesc .name [0 ]
322321 assert type_char == self .TYPE_ARRAY
323322 type_char = classdesc .name [1 ]
@@ -329,12 +328,11 @@ def do_array(self, parent=None, ident=0):
329328 array .append (res )
330329 else :
331330 for i in range (size ):
332- res = self .read_native (typestr , ident )
331+ res = self .read_native (type_char , ident )
333332 print "Native value:" , res
334333 array .append (res )
335- # raise RuntimeError("Native types aren't supported in arrays")
336334
337- return None
335+ return array
338336
339337 def do_reference (self , parent = None , ident = 0 ):
340338 (handle , ) = self ._readStruct (">L" )
0 commit comments