Fixing syntax typos in Python formatters

llvm-svn: 153910
This commit is contained in:
Enrico Granata 2012-04-02 23:43:22 +00:00
parent d70cde134b
commit a20e863875
3 changed files with 6 additions and 6 deletions

View File

@ -166,16 +166,16 @@ class NSArray_SynthProvider:
if name_string == '__NSArrayI':
wrapper = NSArrayI_SynthProvider(self.valobj, dict, class_data.sys_params)
statistics.metric_hit('code_notrun',valobj.GetName())
statistics.metric_hit('code_notrun',self.valobj.GetName())
elif name_string == '__NSArrayM':
wrapper = NSArrayM_SynthProvider(self.valobj, dict, class_data.sys_params)
statistics.metric_hit('code_notrun',valobj.GetName()))
statistics.metric_hit('code_notrun',self.valobj.GetName())
elif name_string == '__NSCFArray':
wrapper = NSArrayCF_SynthProvider(self.valobj, dict, class_data.sys_params)
statistics.metric_hit('code_notrun',valobj.GetName()))
statistics.metric_hit('code_notrun',self.valobj.GetName())
else:
wrapper = NSArrayKVC_SynthProvider(self.valobj, dict, class_data.sys_params)
statistics.metric_hit('unknown_class',str(valobj.GetName())) + " seen as " + name_string)
statistics.metric_hit('unknown_class',str(self.valobj.GetName()) + " seen as " + name_string)
return wrapper;
def CFArray_SummaryProvider (valobj,dict):

View File

@ -53,7 +53,7 @@ class NSBundleKnown_SummaryProvider:
self.sys_params.types_cache.NSString)
my_string = text.GetSummary()
if (my_string == None) or (my_string == ''):
statistics.metric_hit('unknown_class',str(valobj.GetName())) + " triggered unkown pointer location")
statistics.metric_hit('unknown_class',str(valobj.GetName()) + " triggered unkown pointer location")
return NSBundleUnknown_SummaryProvider(self.valobj, self.sys_params).url_text()
else:
statistics.metric_hit('code_notrun',self.valobj)

View File

@ -156,7 +156,7 @@ class NSUntaggedNumber_SummaryProvider:
data_double = struct.unpack('d', struct.pack('Q', data_plain))[0]
statistics.metric_hit('code_notrun',self.valobj)
return '(double)' + str(data_double)
statistics.metric_hit('unknown_class',str(valobj.GetName())) + " had unknown data_type " + str(data_type))
statistics.metric_hit('unknown_class',str(valobj.GetName()) + " had unknown data_type " + str(data_type))
return 'absurd: dt = ' + str(data_type)