diff options
| author | Davide Italiano <davide@freebsd.org> | 2019-03-13 00:48:29 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2019-03-13 00:48:29 +0000 |
| commit | ca715b6ea029a98425bf24d1c390034dc1e58e32 (patch) | |
| tree | 77290ec2da540672490f1a0a9b2b1df3ec40ad4b /lldb/examples/summaries/synth.py | |
| parent | 750efba67c528edd1d1af700fd925927faa7adec (diff) | |
| download | bcm5719-llvm-ca715b6ea029a98425bf24d1c390034dc1e58e32.tar.gz bcm5719-llvm-ca715b6ea029a98425bf24d1c390034dc1e58e32.zip | |
[Python] Fix another batch of python 2/python 3 portability issues.
llvm-svn: 355998
Diffstat (limited to 'lldb/examples/summaries/synth.py')
| -rw-r--r-- | lldb/examples/summaries/synth.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/examples/summaries/synth.py b/lldb/examples/summaries/synth.py index 23f02d9b50f..02dcc4f7014 100644 --- a/lldb/examples/summaries/synth.py +++ b/lldb/examples/summaries/synth.py @@ -33,11 +33,8 @@ class PythonObjectSyntheticChildProvider(object): def gen_child(self, name, value): data = None type = None - if isinstance(value, int): - data = lldb.SBData.CreateDataFromUInt32Array( - self.bo, self.ps, [value]) - type = self.value.target.GetBasicType(lldb.eBasicTypeInt) - elif isinstance(value, long): + import six + if isinstance(value, six.integer_types): data = lldb.SBData.CreateDataFromUInt64Array( self.bo, self.ps, [value]) type = self.value.target.GetBasicType(lldb.eBasicTypeLong) |

