Index: examples/summaries/cocoa/CFArray.py =================================================================== --- examples/summaries/cocoa/CFArray.py +++ examples/summaries/cocoa/CFArray.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/CFBag.py =================================================================== --- examples/summaries/cocoa/CFBag.py +++ examples/summaries/cocoa/CFBag.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/CFBinaryHeap.py =================================================================== --- examples/summaries/cocoa/CFBinaryHeap.py +++ examples/summaries/cocoa/CFBinaryHeap.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/CFDictionary.py =================================================================== --- examples/summaries/cocoa/CFDictionary.py +++ examples/summaries/cocoa/CFDictionary.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/NSData.py =================================================================== --- examples/summaries/cocoa/NSData.py +++ examples/summaries/cocoa/NSData.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/NSIndexSet.py =================================================================== --- examples/summaries/cocoa/NSIndexSet.py +++ examples/summaries/cocoa/NSIndexSet.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/NSMachPort.py =================================================================== --- examples/summaries/cocoa/NSMachPort.py +++ examples/summaries/cocoa/NSMachPort.py @@ -13,6 +13,11 @@ import lldb.formatters.metrics import lldb.formatters.Logger +try: + basestring +except NameError: + basestring =str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer') Index: examples/summaries/cocoa/NSSet.py =================================================================== --- examples/summaries/cocoa/NSSet.py +++ examples/summaries/cocoa/NSSet.py @@ -13,6 +13,11 @@ import CFBag import lldb.formatters.Logger +try: + basestring +except NameError: + basestring = str + statistics = lldb.formatters.metrics.Metrics() statistics.add_metric('invalid_isa') statistics.add_metric('invalid_pointer')